1
0
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:
Jakob Stoklund Olesen 2011-01-12 21:27:45 +00:00
parent 764cce86f0
commit 22bdcea2fd

View File

@ -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();