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: unassignedb...@nondot.org
          Reporter: ditali...@apple.com
                CC: jdevliegh...@apple.com, keith.wal...@arm.com,
                    llvm-bugs@lists.llvm.org,
                    paul_robin...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to