]> granicus.if.org Git - llvm/commit
A fix for PR21176.
authorEkaterina Romanova <katya_romanova@playstation.sony.com>
Wed, 10 Dec 2014 23:19:56 +0000 (23:19 +0000)
committerEkaterina Romanova <katya_romanova@playstation.sony.com>
Wed, 10 Dec 2014 23:19:56 +0000 (23:19 +0000)
commitde68a563bc0c63a4d043769609867ec0cc2083dd
treea672fe88f75f1d3c3bfc42bb373da0410bf91d6e
parent218d20a48bd3ea0b7f60339a39e8902871ff0162
A fix for PR21176.

DW_OP_const <const> doesn't describe a constant value, but a value at a constant address.
The proper way to describe a constant value is DW_OP_constu <const>, DW_OP_stack_value.

Added DW_OP_stack_value to the stack.

-This line, and those below, will be ignored--

M    lib/CodeGen/AsmPrinter/DwarfDebug.cpp
A    test/DebugInfo/incorrect-variable-debugloc1.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223981 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/incorrect-variable-debugloc1.ll [new file with mode: 0644]