Open Quuxplusone opened 4 years ago
Bugzilla Link | PR45920 |
Status | CONFIRMED |
Importance | P normal |
Reported by | Yibiao Yang (yangyibiao@nju.edu.cn) |
Reported on | 2020-05-13 20:13:04 -0700 |
Last modified on | 2020-05-14 10:23:18 -0700 |
Version | trunk |
Hardware | PC Linux |
CC | dblaikie@gmail.com, jdevlieghere@apple.com, jeremy.morse.llvm@gmail.com, josh@joshmatthews.net, llvm-bugs@lists.llvm.org, neeilans@live.com, paul.robinson@am.sony.com, richard-llvm@metafoo.co.uk, vsk@apple.com |
Fixed by commit(s) | |
Attachments | |
Blocks | PR38768 |
Blocked by | |
See also |
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.
I am sorry! I forgot to include the commands, here is the command I used to compile this code:
$ clang -g small.c