summaryrefslogtreecommitdiff
path: root/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
commita0382c629093a2edd175dc256750667c296d3a43 (patch)
tree86042c7fc01f8462f3b35f672ad3f0f2fe26005b /lib/CodeGen/LiveIntervalUnion.cpp
parente7e4b51afc12b248927896fb76b4361e18468079 (diff)
downloadllvm-a0382c629093a2edd175dc256750667c296d3a43.tar.gz
llvm-a0382c629093a2edd175dc256750667c296d3a43.tar.bz2
llvm-a0382c629093a2edd175dc256750667c296d3a43.tar.xz
Add a forgotten initializer for CheckedFirstInterference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalUnion.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalUnion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.cpp b/lib/CodeGen/LiveIntervalUnion.cpp
index d5c7bf08eb..59d48a4b64 100644
--- a/lib/CodeGen/LiveIntervalUnion.cpp
+++ b/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;
}