[llvm-commits] [llvm] r124907 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Feb 4 15:11:13 PST 2011
Author: stoklund
Date: Fri Feb 4 17:11:13 2011
New Revision: 124907
URL: http://llvm.org/viewvc/llvm-project?rev=124907&view=rev
Log:
Apparently, it is possible for a block with a landing pad successor to have no calls.
In that case we simply ignore the landing pad and split live ranges before the
first terminator.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=124907&r1=124906&r2=124907&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Feb 4 17:11:13 2011
@@ -764,7 +764,7 @@
if (I->getDesc().isCall())
return I;
}
- assert(0 && "Block with landing pad successor contains no call instruction");
+ // The block contains no calls that can throw, so use the first terminator.
return mbb->getFirstTerminator();
}
More information about the llvm-commits
mailing list