aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2020-08-13 08:55:39 +0200
committerDavid Stenberg <david.stenberg@ericsson.com>2020-08-13 15:10:41 +0200
commite8ebebb0bde602199c4012efbcfe823f7ab9337f (patch)
treea7379078c1341f7d1cbbda2cf4bcbf82c1c6d4fa /llvm/lib/Object/ELFObjectFile.cpp
parenta5b8757506b07e3091fe243b6c1e004220d3cba3 (diff)
downloadllvm-e8ebebb0bde602199c4012efbcfe823f7ab9337f.zip
llvm-e8ebebb0bde602199c4012efbcfe823f7ab9337f.tar.gz
llvm-e8ebebb0bde602199c4012efbcfe823f7ab9337f.tar.bz2
[InstCombine] Fix incorrect Modified status
When removing instructions from unreachable blocks, and only debug info intrinsics were removed, InstCombine could incorrectly return a false Modified status. This is fixed by making removeAllNonTerminatorAndEHPadInstructions() also return how many debug info intrinsics that were removed, and take that into account. This was caught using the check introduced by D80916. Reviewed By: majnemer Differential Revision: https://reviews.llvm.org/D85839
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions