[clang] [clang][CodeGen] Drop debug location on the if-then exit branch (PR #212942)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 01:10:23 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 57522 tests passed
* 2815 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Profile-x86_64
<details>
<summary>Profile-x86_64.Profile-x86_64/instrprof-gcov-multiple-bbs-single-line.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
mkdir -p C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp.d
# executed command: mkdir -p 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp.d'
# note: command had no output on stdout or stderr
# RUN: at line 2
cd C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp.d
# executed command: cd 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp.d'
# note: command had no output on stdout or stderr
# RUN: at line 4
C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -D_MT -D_DLL -Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames -Wl,-incremental:no --coverage -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c -dumpdir ./
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -D_MT -D_DLL -Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames -Wl,-incremental:no --coverage -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp' 'C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c' -dumpdir ./
# note: command had no output on stdout or stderr
# RUN: at line 5
test -f instrprof-gcov-multiple-bbs-single-line.gcno
# executed command: test -f instrprof-gcov-multiple-bbs-single-line.gcno
# note: command had no output on stdout or stderr
# RUN: at line 7
rm -f instrprof-gcov-multiple-bbs-single-line.gcda
# executed command: rm -f instrprof-gcov-multiple-bbs-single-line.gcda
# note: command had no output on stdout or stderr
# RUN: at line 8
C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp
# executed command: 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-gcov-multiple-bbs-single-line.test.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 9
llvm-cov gcov -b -c instrprof-gcov-multiple-bbs-single-line.gcda
# executed command: llvm-cov gcov -b -c instrprof-gcov-multiple-bbs-single-line.gcda
# .---command stdout------------
# | File 'C:\_work\llvm-project\llvm-project\compiler-rt\test\profile\Inputs\instrprof-gcov-multiple-bbs-single-line.c'
# | Lines executed:90.00% of 10
# | Branches executed:100.00% of 8
# | Taken at least once:50.00% of 8
# | No calls
# | Creating 'instrprof-gcov-multiple-bbs-single-line.c.gcov'
# |
# `-----------------------------
# RUN: at line 10
FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-multiple-bbs-single-line.c.gcov C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c.gcov
# executed command: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-multiple-bbs-single-line.c.gcov 'C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c.gcov'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c.gcov:15:15: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: 1: 8: }
# | ^
# | instrprof-gcov-multiple-bbs-single-line.c.gcov:14:27: note: scanning from here
# | 1: 7: var++;
# | ^
# | instrprof-gcov-multiple-bbs-single-line.c.gcov:15:9: note: possible intended match here
# | -: 8: }
# | ^
# |
# | Input file: instrprof-gcov-multiple-bbs-single-line.c.gcov
# | Check file: C:\_work\llvm-project\llvm-project\compiler-rt\test\profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c.gcov
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: -: 4:
# | 10: 1: 5: int a = 1;
# | 11: 1: 6: if (a) {
# | 12: branch 0 taken 0
# | 13: branch 1 taken 1
# | 14: 1: 7: var++;
# | next:15'0 { search range start (exclusive)
# | next:15'1 error: no match found in search range
# | 15: -: 8: }
# | next:15'2 ? possible intended match
# | 16: -: 9:
# | 17: 1: 10: if (a) {}
# | 18: branch 0 taken 0
# | 19: branch 1 taken 1
# | 20: -: 11:
# | .
# | .
# | .
# | 28: 1: 17: if (b) {}
# | 29: branch 0 taken 1
# | 30: branch 1 taken 0
# | 31: -: 18:
# | 32: 1: 19: return 0;
# | 33: -: 20:}
# | next:15'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/212942
More information about the cfe-commits
mailing list