1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Assert on SSA errors in LiveVariables.

All uses of a virtual register must be dominated by its def.

llvm-svn: 152449
This commit is contained in:
Jakob Stoklund Olesen 2012-03-09 23:41:44 +00:00
parent 8d12a0fbf8
commit b89fca5c5a

View File

@ -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());
}