[llvm-commits] [llvm] r123323 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jan 12 13:27:45 PST 2011
Author: stoklund
Date: Wed Jan 12 15:27:45 2011
New Revision: 123323
URL: http://llvm.org/viewvc/llvm-project?rev=123323&view=rev
Log:
Assert if anybody tries to put a slot index on a DBG_VALUE instruction.
Modified:
llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=123323&r1=123322&r2=123323&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Wed Jan 12 15:27:45 2011
@@ -625,6 +625,9 @@
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();
More information about the llvm-commits
mailing list