[Bug 45920] New: lldb wrongly stopped at a statement for nesting loop using step instruction

Bug ID 45920
Summary lldb wrongly stopped at a statement for nesting loop using step instruction
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter yangyibiao@hust.edu.cn
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Jeremy Morse changed bug 45920

What | Removed | Added |

Comment # 1 on bug 45920 from Jeremy Morse

Thanks for the bug report -- could you include the command line used to compile
the source too please. Assuming -O0, this looks very similar to bug 45676 and
its related bug 19864 -- clang is labelling the exit of the inner loop with
what we would consider the wrong location:

> for.end:                                          ; preds = %for.cond1
>   br label %for.inc7, !dbg !51

> 51 = !DILocation(line: 8, column: 16, scope: !29)

Where line 8 is the line with "return 1;". I can replicate this with gdb, so
switching component to clang.