OSDN Git Service

[CloneFunction] Don't crash if the value map doesn't hold something
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 3 Aug 2016 17:37:10 +0000 (17:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 3 Aug 2016 17:37:10 +0000 (17:37 +0000)
commit245fddf0781989c0e2ab84172ea3cb7d18e4f3f7
tree45140b09aad162520ebe3dd6a5f0acf1c13a8afc
parent3f2fe11a4361b64250367a8ce4e5db525a6c796c
[CloneFunction] Don't crash if the value map doesn't hold something

It is possible for the value map to not have an entry for some value
that has already been removed.

I don't have a testcase, this is fall-out from a buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp