From 4c2fadbc18c5a4657e3202b34633668ce26dea97 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 9 Dec 2010 21:20:44 +0000 Subject: Add a forgotten initializer for CheckedFirstInterference. llvm-svn: 121410 --- llvm/lib/CodeGen/LiveIntervalUnion.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.cpp') 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; } -- cgit v1.2.3