]> granicus.if.org Git - llvm/commit
Fix bug that caused DwarfExpression to drop DW_OP_deref from FI locations
authorAdrian Prantl <aprantl@apple.com>
Wed, 19 Apr 2017 23:42:25 +0000 (23:42 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 19 Apr 2017 23:42:25 +0000 (23:42 +0000)
commitffa4b4378e645ee7bdf6b3da7f54640252ebad6f
treeb1d9a63201aff486f8765243fb5029085bba9e92
parent113bca21d3e6a1844ed70db6e3c992dd82735468
Fix bug that caused DwarfExpression to drop DW_OP_deref from FI locations
- introduced in r300522 and found via the Swift LLDB testsuite.

The fix is to set the location kind to memory whenever an FrameIndex
location is emitted.

rdar://problem/31707602

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300793 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
lib/CodeGen/AsmPrinter/DwarfExpression.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/X86/fi-expr.ll [new file with mode: 0644]