summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit7d544f91654880afbdf2bf31b7fd94bf37912740 (patch)
treee20cdbec157311463a665452f4959ee9b94a0cb8 /llvm/lib/CodeGen/LiveVariables.cpp
parent33be12003f67d7c7cd005de11652bf53aa43d390 (diff)
downloadbcm5719-llvm-7d544f91654880afbdf2bf31b7fd94bf37912740.tar.gz
bcm5719-llvm-7d544f91654880afbdf2bf31b7fd94bf37912740.zip
Assert on SSA errors in LiveVariables.
All uses of a virtual register must be dominated by its def. llvm-svn: 152449
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 9c3d2553647..48e1e4cdad1 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/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());
}
OpenPOWER on IntegriCloud