diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2015-08-19 19:54:02 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2015-08-19 19:54:02 +0000 |
| commit | ba275f9947f32820462bfa2432f8ceb343c14129 (patch) | |
| tree | 171a3c681777ddebc58e2df889752bc8d8a813fd /llvm/lib/Transforms/Scalar/ConstantHoisting.cpp | |
| parent | 9c10414ce02811923a08eedea0c3bd9bdb712d6f (diff) | |
| download | bcm5719-llvm-ba275f9947f32820462bfa2432f8ceb343c14129.tar.gz bcm5719-llvm-ba275f9947f32820462bfa2432f8ceb343c14129.zip | |
Replace some calls to isa<LandingPadInst> with isEHPad()
No functionality change is intended.
llvm-svn: 245487
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantHoisting.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ConstantHoisting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp index 4288742dd3e..af3edcf7228 100644 --- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp +++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp @@ -223,10 +223,10 @@ Instruction *ConstantHoisting::findMatInsertPt(Instruction *Inst, } // The simple and common case. This also includes constant expressions. - if (!isa<PHINode>(Inst) && !isa<LandingPadInst>(Inst)) + if (!isa<PHINode>(Inst) && !Inst->isEHPad()) return Inst; - // We can't insert directly before a phi node or landing pad. Insert before + // We can't insert directly before a phi node or an eh pad. Insert before // the terminator of the incoming or dominating block. assert(Entry != Inst->getParent() && "PHI or landing pad in entry block!"); if (Idx != ~0U && isa<PHINode>(Inst)) |

