[llvm-bugs] [Bug 45153] Wrong debug info generated at -O3 (-O0 is correct)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 9 10:25:59 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45153

Paul Robinson <paul_robinson at playstation.sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Paul Robinson <paul_robinson at playstation.sony.com> ---
At -O3 the do-nothing `for` loop has been eliminated; you will be able to
determine this because in the optimized program, lldb will be unable to stop
on line 5.  Because the loop is gone, the value of `l_16` is simply 0
throughout the function.

LLDB's behavior is correct here.  Resolving as invalid.

-- 
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/20200309/22b61cf1/attachment.html>


More information about the llvm-bugs mailing list