mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Assert if anybody tries to put a slot index on a DBG_VALUE instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7bd46dae9c
commit
a5f1a900df
@ -625,6 +625,9 @@ namespace llvm {
|
||||
SlotIndex insertMachineInstrInMaps(MachineInstr *mi,
|
||||
bool *deferredRenumber = 0) {
|
||||
assert(mi2iMap.find(mi) == mi2iMap.end() && "Instr already indexed.");
|
||||
// Numbering DBG_VALUE instructions could cause code generation to be
|
||||
// affected by debug information.
|
||||
assert(!mi->isDebugValue() && "Cannot number DBG_VALUE instructions.");
|
||||
|
||||
MachineBasicBlock *mbb = mi->getParent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user