aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-05 23:43:14 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-05 23:43:14 +0000
commit5c482cd38f83f6fc1b95f86478e684e5f072399e (patch)
treedd5206a8a4dc2c6427c6d9ffe25cfea4b11c83a0 /llvm/lib/CodeGen/SplitKit.cpp
parent30b5473d82125a99721e280eaba95ccd8abb741c (diff)
downloadllvm-5c482cd38f83f6fc1b95f86478e684e5f072399e.zip
llvm-5c482cd38f83f6fc1b95f86478e684e5f072399e.tar.gz
llvm-5c482cd38f83f6fc1b95f86478e684e5f072399e.tar.bz2
Don't crash when a value is defined after the last split point.
llvm-svn: 128962
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index 4b64288..a3e065d 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -673,7 +673,8 @@ void SplitEditor::overlapIntv(SlotIndex Start, SlotIndex End) {
"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());