[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)
commitfa8ef91748db3c9c890d90653eafad7652b704f6
treee4ae787c930f472dd8c392f0f0764a6708742f5d
parent5d05763761758c7ab425f32221571b94d4bd2b61
[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.

llvm-svn: 277614
llvm/lib/Transforms/Utils/CloneFunction.cpp