diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-08-04 08:21:40 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-08-04 08:21:40 +0000 |
commit | eb518bd5d8f01ba6334a23e356488dc068bd1b7f (patch) | |
tree | 82596f8b2e96fae8c72f8061125207644c74249b /llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | |
parent | 48977c3364d978b234734e6125adf39e55e9603d (diff) | |
download | llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.zip llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.tar.gz llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.tar.bz2 |
Drive-by fixes for LandingPad -> EHPad
This change was done as an audit and is by inspection. The new EH
system is still very much a work in progress. NFC for the landingpad
case.
llvm-svn: 243965
Diffstat (limited to 'llvm/lib/Transforms/Utils/DemoteRegToStack.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp index 003da58ee..f11b6099 100644 --- a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -91,7 +91,7 @@ AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, if (!isa<TerminatorInst>(I)) { InsertPt = &I; ++InsertPt; - for (; isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt); ++InsertPt) + for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt) /* empty */; // Don't insert before PHI nodes or landingpad instrs. } else { InvokeInst &II = cast<InvokeInst>(I); |