summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2014-04-10 00:27:45 +0000
committerJim Grosbach <grosbach@apple.com>2014-04-10 00:27:45 +0000
commit31689680ec032a694916d6f4d496b236185a685c (patch)
tree6481d418002e72114bb2f28aa2d81a5120c95c28 /lib/Bitcode/Reader
parent6472a514dc8db8414ddd86cfa3aefef84c45b41d (diff)
downloadllvm-31689680ec032a694916d6f4d496b236185a685c.tar.gz
llvm-31689680ec032a694916d6f4d496b236185a685c.tar.bz2
llvm-31689680ec032a694916d6f4d496b236185a685c.tar.xz
Fix to support properly cleaning up failed address sinking against constants
As it turns out the source of the sunkaddr can be a constant, in which case there is not an instruction to delete, causing the cleanup code introduced in r204833 to crash. This patch adds a dynamic check to ensure the deleted value is in fact an instruction and not a constant. Patch by Louis Gerbarg <lgg@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions