aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-07-10 07:15:17 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-07-10 07:15:17 +0000
commitdb82d2f33827dc44dc0076ad26a1a0f4638719c5 (patch)
tree426d1932604bec0dc540456540d91402c644e66a /llvm/lib/Transforms/Utils/Local.cpp
parent0f70ee9017d080e5a068647a8e3717c483c4c51b (diff)
downloadllvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.zip
llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.tar.gz
llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.tar.bz2
Revert the new EH instructions
This reverts commits r241888-r241891, I didn't mean to commit them. llvm-svn: 241893
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index e1788c9..5608557 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -283,9 +283,8 @@ bool llvm::isInstructionTriviallyDead(Instruction *I,
const TargetLibraryInfo *TLI) {
if (!I->use_empty() || isa<TerminatorInst>(I)) return false;
- // We don't want the landingpad-like instructions removed by anything this
- // general.
- if (I->isEHBlock())
+ // We don't want the landingpad instruction removed by anything this general.
+ if (isa<LandingPadInst>(I))
return false;
// We don't want debug info removed by anything this general, unless