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:
parent
8d12a0fbf8
commit
b89fca5c5a
@ -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