[llvm-bugs] [Bug 45523] New: Wrong line table at `-Og` [lldb breaks on dead code]

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 13 19:12:31 PDT 2020


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

            Bug ID: 45523
           Summary: Wrong line table at `-Og` [lldb breaks on dead code]
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: ditaliano at apple.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

volatile int a, b, c;
int g_390[2];
int main() {
  for (; b > -9; b--)
    ;
  for (; c <= 5; c++) {
    g_390[1] = 0;
    if (b)
      ;
    else {
      char l_1546[3][4][3];
      g_390[1] = l_1546[2][3][2];
    }
  }
}


(lldb) n
Process 33550 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
    frame #0: 0x0000000100000fa7 a.out`main at a.c:12:16 [opt]
   9          ;
   10       else {
   11         char l_1546[3][4][3];
-> 12         g_390[1] = l_1546[2][3][2];
   13       }
   14     }
   15   }

-- 
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/20200414/85b55d0c/attachment.html>


More information about the llvm-bugs mailing list