summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-09 23:41:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-09 23:41:44 +0000
commit9ab3dbe617af06627fed2455c93ab9dc6b459951 (patch)
tree15d272d3f13c6798f4eeeaf4d6348206dfef94bd /lib/CodeGen/LiveVariables.cpp
parent6e1beea6bfb668b48c1aca7185a75bf207bcc16c (diff)
downloadllvm-9ab3dbe617af06627fed2455c93ab9dc6b459951.tar.gz
llvm-9ab3dbe617af06627fed2455c93ab9dc6b459951.tar.bz2
llvm-9ab3dbe617af06627fed2455c93ab9dc6b459951.tar.xz
Assert on SSA errors in LiveVariables.
All uses of a virtual register must be dominated by its def. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r--lib/CodeGen/LiveVariables.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp
index 9c3d255364..48e1e4cdad 100644
--- a/lib/CodeGen/LiveVariables.cpp
+++ b/lib/CodeGen/LiveVariables.cpp
@@ -109,6 +109,7 @@ void LiveVariables::MarkVirtRegAliveInBlock(VarInfo& VRInfo,
// Mark the variable known alive in this bb
VRInfo.AliveBlocks.set(BBNum);
+ assert(MBB != &MF->front() && "Can't find reaching def for virtreg");
WorkList.insert(WorkList.end(), MBB->pred_rbegin(), MBB->pred_rend());
}