mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Assert if anybody tries to put a slot index on a DBG_VALUE instruction.
llvm-svn: 123323
This commit is contained in:
parent
764cce86f0
commit
22bdcea2fd
@ -625,6 +625,9 @@ namespace llvm {
|
|||||||
SlotIndex insertMachineInstrInMaps(MachineInstr *mi,
|
SlotIndex insertMachineInstrInMaps(MachineInstr *mi,
|
||||||
bool *deferredRenumber = 0) {
|
bool *deferredRenumber = 0) {
|
||||||
assert(mi2iMap.find(mi) == mi2iMap.end() && "Instr already indexed.");
|
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();
|
MachineBasicBlock *mbb = mi->getParent();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user