]> granicus.if.org Git - llvm/commit
Fix an assertion when skipping stack values in DWARF2 mode.
authorAdrian Prantl <aprantl@apple.com>
Tue, 25 Apr 2017 19:40:53 +0000 (19:40 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 25 Apr 2017 19:40:53 +0000 (19:40 +0000)
commit6ec3ecc68b379c2732b61297b5b9420b3eb3b627
treecd9918b83b21ef2997258cf47e6ebaf634ffe513
parent10cfd77597d14ce8644f419f8cbc36b6cdc56862
Fix an assertion when skipping stack values in DWARF2 mode.
The fix consists of resetting LocationKind when addMachineRegExpression fails.

rdar://problem/31803010

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
test/DebugInfo/X86/stack-value-dwarf2.ll [new file with mode: 0644]