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/IPO/LoopExtractor.cpp | |
parent | 48977c3364d978b234734e6125adf39e55e9603d (diff) | |
download | bcm5719-llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.tar.gz bcm5719-llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.zip |
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/IPO/LoopExtractor.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/LoopExtractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp index 41334ca5b42..f3d6d764c13 100644 --- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp +++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp @@ -120,14 +120,14 @@ bool LoopExtractor::runOnLoop(Loop *L, LPPassManager &LPM) { } if (ShouldExtractLoop) { - // We must omit landing pads. Landing pads must accompany the invoke + // We must omit EH pads. EH pads must accompany the invoke // instruction. But this would result in a loop in the extracted // function. An infinite cycle occurs when it tries to extract that loop as // well. SmallVector<BasicBlock*, 8> ExitBlocks; L->getExitBlocks(ExitBlocks); for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) - if (ExitBlocks[i]->isLandingPad()) { + if (ExitBlocks[i]->isEHPad()) { ShouldExtractLoop = false; break; } |