[llvm-commits] [llvm] r140176 - /llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp
Bill Wendling
isanbard at gmail.com
Tue Sep 20 13:20:50 PDT 2011
Author: void
Date: Tue Sep 20 15:20:50 2011
New Revision: 140176
URL: http://llvm.org/viewvc/llvm-project?rev=140176&view=rev
Log:
Check the terminator, not the basic block.
Modified:
llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp?rev=140176&r1=140175&r2=140176&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/LoopExtractor.cpp Tue Sep 20 15:20:50 2011
@@ -278,7 +278,8 @@
for (unsigned i = 0, e = BlocksToExtract.size(); i != e; ++i) {
SmallVector<BasicBlock*, 2> BlocksToExtractVec;
BlocksToExtractVec.push_back(BlocksToExtract[i]);
- if (const InvokeInst *II = dyn_cast<InvokeInst>(BlocksToExtract[i]))
+ if (const InvokeInst *II =
+ dyn_cast<InvokeInst>(BlocksToExtract[i]->getTerminator()))
BlocksToExtractVec.push_back(II->getUnwindDest());
ExtractBasicBlock(BlocksToExtractVec);
}
More information about the llvm-commits
mailing list