summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalUnion.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-09 21:20:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-09 21:20:44 +0000
commit4c2fadbc18c5a4657e3202b34633668ce26dea97 (patch)
tree3970d57ff84d7a16d51ac8b63330b8dc997a2752 /llvm/lib/CodeGen/LiveIntervalUnion.cpp
parentf749ad734f3ff3c88bb4d5bb8256c817b3422af0 (diff)
downloadbcm5719-llvm-4c2fadbc18c5a4657e3202b34633668ce26dea97.tar.gz
bcm5719-llvm-4c2fadbc18c5a4657e3202b34633668ce26dea97.zip
Add a forgotten initializer for CheckedFirstInterference.
llvm-svn: 121410
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp
index d5c7bf08eb6..59d48a4b64d 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalUnion.cpp
@@ -168,6 +168,8 @@ LiveIntervalUnion::Query::firstInterference() {
IR.VirtRegI = VirtReg->end();
}
findIntersection(FirstInterference);
+ assert((IR.VirtRegI == VirtReg->end() || IR.LiveUnionI.valid())
+ && "Uninitialized iterator");
return FirstInterference;
}
OpenPOWER on IntegriCloud