[llvm-bugs] [Bug 45923] Wrong variable value shown during debugging at Og
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 18 10:31:06 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45923
Vedant Kumar <vsk at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed By Commit(s)| |623b2542446a1873fb7ea3904c4
| |fb50e2e77fe41
Status|CONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Vedant Kumar <vsk at apple.com> ---
With 623b2542446a1873fb7ea3904c4fb50e2e77fe41, in the output from `llc a.ll
-stop-after=finalize-isel -o -`, I see:
```
MOV32mi $rip, 1, $noreg, @e, $noreg, 8, debug-location !32 :: (store 4 into
@e, !tbaa !33)
DBG_VALUE 1, $noreg, !31, !DIExpression(), debug-location !37
```
What I think happened is that SelectionDAG placed the (signed) Value from the
salvaged into a constant SDDbgValue node. Later when it reconstructed the
DBG_VALUE MI for this node, I'd expect it to appear as "DBG_VALUE -1".
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200518/63788751/attachment-0001.html>
More information about the llvm-bugs
mailing list