mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add assertion.
llvm-svn: 125101
This commit is contained in:
parent
0cc8ef1ec9
commit
5a0048302f
@ -857,9 +857,10 @@ SlotIndex SplitEditor::leaveIntvAfter(SlotIndex Idx) {
|
||||
}
|
||||
DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n');
|
||||
|
||||
MachineBasicBlock::iterator MII = LIS.getInstructionFromIndex(Idx);
|
||||
VNInfo *VNI = defFromParent(0, ParentVNI, Idx,
|
||||
*MII->getParent(), llvm::next(MII));
|
||||
MachineInstr *MI = LIS.getInstructionFromIndex(Idx);
|
||||
assert(MI && "No instruction at index");
|
||||
VNInfo *VNI = defFromParent(0, ParentVNI, Idx, *MI->getParent(),
|
||||
llvm::next(MachineBasicBlock::iterator(MI)));
|
||||
return VNI->def;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user