diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-09 23:41:44 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-09 23:41:44 +0000 |
commit | 7d544f91654880afbdf2bf31b7fd94bf37912740 (patch) | |
tree | e20cdbec157311463a665452f4959ee9b94a0cb8 /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | 33be12003f67d7c7cd005de11652bf53aa43d390 (diff) | |
download | bcm5719-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.cpp | 1 |
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()); } |