Emit DW_OP_piece also if the previous value was a constant.
authorAdrian Prantl <aprantl@apple.com>
Wed, 2 Nov 2016 16:12:16 +0000 (16:12 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 2 Nov 2016 16:12:16 +0000 (16:12 +0000)
commit56527dc804d2f6adc97d17a81e02d749c38ef3fe
tree67286dc5b36a406b4107beae2d591c0bbcad5c78
parent4eec18ffc931a6ce744ab3f35ceed8675d9b8521
Emit DW_OP_piece also if the previous value was a constant.
This fixes a bug in the DWARF backend.

llvm-svn: 285826
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/PR26148.ll
llvm/test/DebugInfo/X86/stack-value-piece.ll [new file with mode: 0644]