mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
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
This commit is contained in:
parent
6e1beea6bf
commit
9ab3dbe617
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user