mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-20 11:26:35 +00:00
Add assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -857,9 +857,10 @@ SlotIndex SplitEditor::leaveIntvAfter(SlotIndex Idx) {
|
|||||||
}
|
}
|
||||||
DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n');
|
DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n');
|
||||||
|
|
||||||
MachineBasicBlock::iterator MII = LIS.getInstructionFromIndex(Idx);
|
MachineInstr *MI = LIS.getInstructionFromIndex(Idx);
|
||||||
VNInfo *VNI = defFromParent(0, ParentVNI, Idx,
|
assert(MI && "No instruction at index");
|
||||||
*MII->getParent(), llvm::next(MII));
|
VNInfo *VNI = defFromParent(0, ParentVNI, Idx, *MI->getParent(),
|
||||||
|
llvm::next(MachineBasicBlock::iterator(MI)));
|
||||||
return VNI->def;
|
return VNI->def;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user