diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-04-25 18:18:09 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-04-25 18:18:09 +0000 |
commit | 25c74de50059076d87fda6fe01cb53aea9a3c302 (patch) | |
tree | 4b43428d076830430cd0f4dbc7ff1b6fe458269c /lib/CodeGen/SelectionDAG/InstrEmitter.cpp | |
parent | ad56833808a0db1a4666d6f2f257690d94b94cbe (diff) | |
download | llvm-25c74de50059076d87fda6fe01cb53aea9a3c302.tar.gz llvm-25c74de50059076d87fda6fe01cb53aea9a3c302.tar.bz2 llvm-25c74de50059076d87fda6fe01cb53aea9a3c302.tar.xz |
Revert "This reapplies r207130 with an additional testcase+and a missing check for"
This reverts commit 207235 to investigate msan buildbot breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207250 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); |