aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-08 23:51:35 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-08 23:51:35 +0000
commit9b0c4f8af3e303c85ddb5ff0ee2c8e27a4d77203 (patch)
tree74ecb9a8267c209adc0fc0f34fa2d1db07f89ac4 /lib/CodeGen/RegAllocGreedy.cpp
parent045869c12ac5af2b1dd97a0dcbedab8db01fe765 (diff)
Properly deal with empty intervals when checking for interference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index c88d474315..f69979bf2a 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -173,6 +173,7 @@ unsigned RAGreedy::selectOrSplit(LiveInterval &VirtReg,
// Found an available register.
return PhysReg;
}
+ assert(!VirtReg.empty() && "Empty VirtReg has interference");
LiveInterval *interferingVirtReg =
Queries[interfReg].firstInterference().liveUnionPos().value();