https://bugs.llvm.org/show_bug.cgi?id=51463
Bug ID: 51463
Summary: llc -O0 generates incorrect debug information when
compiling IR containing llvm.dbg.value
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: dwight.g...@runtimeverification.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
Created attachment 25128
--> https://bugs.llvm.org/attachment.cgi?id=25128&action=edit
minimized llvm IR
If you take the attached LLVM IR containing debug information and try to
compile it into an executable using `llc -O0`, GDB (tested using version 9.2)
will not be able to report the value of `x` if you are stopped at a breakpoint
on the `foo` function. This seems to have worked as recently as llvm 11. This
is on an AMD64 machine. I can reproduce this on the main branch of llvm.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs