diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 23:43:14 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 23:43:14 +0000 |
commit | b3dd82670aa60cacba81f090d292722c3ef44354 (patch) | |
tree | eb57d1e8b981c59fa8b8fad0b6220deb71e5f522 /lib/CodeGen/SplitKit.cpp | |
parent | 3e22897fa9f07fc641b07d2e12101d21f84da668 (diff) |
Don't crash when a value is defined after the last split point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 4b642883d4..a3e065d1bd 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/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()); |