diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-04-25 00:04:49 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-04-25 00:04:49 +0000 |
commit | ab6ab3c33363452bc53c119dc36ad650f6c267d7 (patch) | |
tree | 3640ac2fe18a5ed68f4be3ef6a07d21e7984af40 /lib/CodeGen/SelectionDAG/InstrEmitter.cpp | |
parent | 45588a02fba84e6532dcfa10cfaa69ad2f848c9d (diff) | |
download | llvm-ab6ab3c33363452bc53c119dc36ad650f6c267d7.tar.gz llvm-ab6ab3c33363452bc53c119dc36ad650f6c267d7.tar.bz2 llvm-ab6ab3c33363452bc53c119dc36ad650f6c267d7.tar.xz |
Revert "Debug info for optimized code: Support variables that are on the stack and"
This reverts commit 207130 for buildbot breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 7c124b8caa..c134454e0d 100644 --- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -688,13 +688,10 @@ InstrEmitter::EmitDbgValue(SDDbgValue *SD, MIB.addReg(0U); } - // Indirect addressing is indicated by an Imm as the second parameter. - if (SD->isIndirect()) + if (Offset != 0) // Indirect addressing. MIB.addImm(Offset); - else { - assert(Offset == 0 && "direct value cannot have an offset"); + else MIB.addReg(0U, RegState::Debug); - } MIB.addMetadata(MDPtr); |