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)
commitc12cee36004590e735fad8d59203ed1a37b72349
tree78e78e9c45d454fcc00a3164d595689824799312
parent295c952b67900e68960bf0be6c29d1393d6916dd
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

llvm-svn: 300793
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/test/DebugInfo/X86/fi-expr.ll [new file with mode: 0644]