projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd46da
)
Assert if anybody tries to put a slot index on a DBG_VALUE instruction.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 12 Jan 2011 21:27:45 +0000
(21:27 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 12 Jan 2011 21:27:45 +0000
(21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123323
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SlotIndexes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SlotIndexes.h
b/include/llvm/CodeGen/SlotIndexes.h
index 312ce0380fe45356662210600e0fd73849a15b59..1da1e91be14abdf8c26b1997461af5945c9fe633 100644
(file)
--- a/
include/llvm/CodeGen/SlotIndexes.h
+++ b/
include/llvm/CodeGen/SlotIndexes.h
@@
-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();