[llvm-commits] [llvm] r128962 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Apr 5 16:43:14 PDT 2011
Author: stoklund
Date: Tue Apr 5 18:43:14 2011
New Revision: 128962
URL: http://llvm.org/viewvc/llvm-project?rev=128962&view=rev
Log:
Don't crash when a value is defined after the last split point.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=128962&r1=128961&r2=128962&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Tue Apr 5 18:43:14 2011
@@ -673,7 +673,8 @@
"Range cannot span basic blocks");
// The complement interval will be extended as needed by extendRange().
- markComplexMapped(0, ParentVNI);
+ if (ParentVNI)
+ markComplexMapped(0, ParentVNI);
DEBUG(dbgs() << " overlapIntv [" << Start << ';' << End << "):");
RegAssign.insert(Start, End, OpenIdx);
DEBUG(dump());
More information about the llvm-commits
mailing list