1
0
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:
Jakob Stoklund Olesen 2011-02-08 18:50:18 +00:00
parent 0cc8ef1ec9
commit 5a0048302f

View File

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