[clang] [codegen]Ensure __builtin_trap() has an unreachable (PR #197789)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 14 13:10:53 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87998 tests passed
* 1566 tests skipped
* 7 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGen/amdgpu-builtin-is-invocable.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx900 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX900 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx900 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX900 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx1010 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX1010 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx1010 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX1010 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c:23:25: error: AMDGCN-GFX1010-NEXT: is not on the line after the previous match
# | // AMDGCN-GFX1010-NEXT: ret void
# | ^
# | <stdin>:13:2: note: 'next' match was here
# | ret void
# | ^
# | <stdin>:9:24: note: previous match ended here
# | call void @llvm.trap()
# | ^
# | <stdin>:10:1: note: non-matching line after previous match is here
# | unreachable
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-is-invocable.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 8: entry:
# | 9: call void @llvm.trap()
# | 10: unreachable
# | 11:
# | 12: dead.trap: ; No predecessors!
# | 13: ret void
# | next:23 !~~~~~~~ error: match on wrong line
# | 14: }
# | 15:
# | 16: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | 17: declare void @llvm.trap() #1
# | 18:
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/amdgpu-builtin-processor-is.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx900 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX900 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -target-cpu gfx900 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=AMDGCN-GFX900 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c:17:24: error: AMDGCN-GFX900-NEXT: is not on the line after the previous match
# | // AMDGCN-GFX900-NEXT: ret void
# | ^
# | <stdin>:13:2: note: 'next' match was here
# | ret void
# | ^
# | <stdin>:9:24: note: previous match ended here
# | call void @llvm.trap()
# | ^
# | <stdin>:10:1: note: non-matching line after previous match is here
# | unreachable
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/amdgpu-builtin-processor-is.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 8: entry:
# | 9: call void @llvm.trap()
# | 10: unreachable
# | 11:
# | 12: dead.trap: ; No predecessors!
# | 13: ret void
# | next:17 !~~~~~~~ error: match on wrong line
# | 14: }
# | 15:
# | 16: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | 17: declare void @llvm.trap() #1
# | 18:
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/attr-nomerge.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp -fms-extensions -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp -fms-extensions -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp:104:11: error: CHECK: expected string not found in input
# | // CHECK: call void @llvm.debugtrap() #[[ATTR0]]
# | ^
# | <stdin>:89:27: note: scanning from here
# | call void @llvm.trap() #5
# | ^
# | <stdin>:89:27: note: with "ATTR0" equal to "5"
# | call void @llvm.trap() #5
# | ^
# | <stdin>:135:3: note: possible intended match here
# | declare void @llvm.trap() #4
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/attr-nomerge.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 84: %6 = load ptr, ptr %vfn13, align 8
# | 85: call void %6(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
# | 86: br label %delete.end
# | 87:
# | 88: delete.end: ; preds = %delete.notnull, %for.end
# | 89: call void @llvm.trap() #5
# | check:104'0 X error: no match found
# | check:104'1 with "ATTR0" equal to "5"
# | 90: unreachable
# | check:104'0 ~~~~~~~~~~~~~
# | 91: }
# | check:104'0 ~~
# | 92:
# | check:104'0 ~
# | 93: declare noundef zeroext i1 @_Z3barv() #1
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 94:
# | check:104'0 ~
# | .
# | .
# | .
# | 130:
# | check:104'0 ~
# | 131: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 132: declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #3
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 133:
# | check:104'0 ~
# | 134: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 135: declare void @llvm.trap() #4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:104'2 ? possible intended match
# | 136:
# | check:104'0 ~
# | 137: ; Function Attrs: mustprogress noinline nounwind optnone
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 138: define dso_local void @_Z9somethingv() #0 {
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 139: entry:
# | check:104'0 ~~~~~~~
# | 140: %call = call noundef i32 @_Z1gi(i32 noundef 1)
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/pr53127.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp -o - -triple x86_64-unknown-linux-gnu | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp -o - -triple x86_64-unknown-linux-gnu
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp:18:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: br label [[COND_END:%.*]]
# | ^
# | <stdin>:23:2: note: 'next' match was here
# | br label %cond.end
# | ^
# | <stdin>:19:24: note: previous match ended here
# | call void @llvm.trap()
# | ^
# | <stdin>:20:1: note: non-matching line after previous match is here
# | unreachable
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/pr53127.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 18: cond.true: ; preds = %entry
# | 19: call void @llvm.trap()
# | 20: unreachable
# | 21:
# | 22: dead.trap: ; No predecessors!
# | 23: br label %cond.end
# | next:18 !~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 24:
# | 25: cond.false: ; preds = %entry
# | 26: br label %cond.end
# | 27:
# | 28: cond.end: ; preds = %cond.false, %dead.trap
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenCXX/microsoft-abi-byval-vararg.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -Wno-non-pod-varargs -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp -o - -triple=i686-pc-win32 -mconstructor-aliases -fno-rtti | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -Wno-non-pod-varargs -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp -o - -triple=i686-pc-win32 -mconstructor-aliases -fno-rtti
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp:44:11: error: CHECK: expected string not found in input
# | // CHECK: call void {{.*varargs_zero.*}}(ptr inalloca(<{ %struct.A }>) %{{.*}})
# | ^
# | <stdin>:112:49: note: scanning from here
# | define dso_local void @"?call_var_args@@YAXXZ"() #0 {
# | ^
# | <stdin>:117:12: note: possible intended match here
# | %argmem = alloca inalloca <{ %struct.A }>, align 4
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp:50:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: declare dso_local void @"?varargs_one@@YAXHZZ"(i32 noundef, ...)
# | ^
# | <stdin>:123:52: note: scanning from here
# | declare dso_local void @"?varargs_zero@@YAXZZ"(...) #3
# | ^
# | <stdin>:126:1: note: possible intended match here
# | declare void @llvm.trap() #4
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 107:
# | 108: ; Function Attrs: nocallback nofree nosync nounwind willreturn
# | 109: declare void @llvm.stackrestore.p0(ptr) #1
# | 110:
# | 111: ; Function Attrs: mustprogress noinline nounwind optnone
# | 112: define dso_local void @"?call_var_args@@YAXXZ"() #0 {
# | check:44'0 X~~~~~ error: no match found
# | 113: entry:
# | check:44'0 ~~~~~~~
# | 114: %x = alloca %struct.A, align 4
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 115: %call = call x86_thiscallcc noundef ptr @"??0A@@QAE at H@Z"(ptr noundef nonnull align 4 dereferenceable(4) %x, i32 noundef 3)
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 116: %inalloca.save = call ptr @llvm.stacksave.p0()
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 117: %argmem = alloca inalloca <{ %struct.A }>, align 4
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:44'1 ? possible intended match
# | 118: %0 = getelementptr inbounds nuw <{ %struct.A }>, ptr %argmem, i32 0, i32 0
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 119: call void @llvm.trap()
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 120: unreachable
# | check:44'0 ~~~~~~~~~~~~~
# | 121: }
# | check:44'0 ~~
# | 122:
# | check:44'0 ~
# | 123: declare dso_local void @"?varargs_zero@@YAXZZ"(...) #3
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:50'0 X~~~ error: no match found
# | 124:
# | label:50'0 ~
# | 125: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | label:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 126: declare void @llvm.trap() #4
# | label:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:50'1 ? possible intended match
# | 127:
# | label:50'0 ~
# | 128: ; Function Attrs: mustprogress noinline nounwind optnone
# | label:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 129: define linkonce_odr dso_local x86_thiscallcc noundef ptr @"??0A@@QAE at ABU0@@Z"(ptr noundef nonnull returned align 4 dereferenceable(4) %this, ptr noundef nonnull align 4 dereferenceable(4) %o) unnamed_addr #0 comdat align 2 {
# | label:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 130: entry:
# | label:50'0 ~~~~~~~
# | 131: %o.addr = alloca ptr, align 4
# | label:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenCXX/vararg-non-pod.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -Wno-error=non-pod-varargs -triple x86_64-unknown-linux-gnu -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -Wno-error=non-pod-varargs -triple x86_64-unknown-linux-gnu -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp:14:10: warning: cannot pass object of non-trivial type 'X' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
# | 14 | vararg(x);
# | | ^
# | 1 warning generated.
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp:15:12: error: CHECK: expected string not found in input
# | // CHECK: ret void
# | ^
# | <stdin>:14:24: note: scanning from here
# | call void @llvm.trap()
# | ^
# | <stdin>:18:5: note: possible intended match here
# | declare void @_Z6varargz(...) #1
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/vararg-non-pod.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: define dso_local void @_Z4test1X(ptr noundef %x) #0 {
# | 10: entry:
# | 11: %x.indirect_addr = alloca ptr, align 8
# | 12: %agg.tmp = alloca %struct.X, align 1
# | 13: store ptr %x, ptr %x.indirect_addr, align 8
# | 14: call void @llvm.trap()
# | check:15'0 X error: no match found
# | 15: unreachable
# | check:15'0 ~~~~~~~~~~~~~
# | 16: }
# | check:15'0 ~~
# | 17:
# | check:15'0 ~
# | 18: declare void @_Z6varargz(...) #1
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:15'1 ? possible intended match
# | 19:
# | check:15'0 ~
# | 20: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: declare void @llvm.trap() #2
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 22:
# | check:15'0 ~
# | 23: declare void @_ZN1XC1ERKS_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Headers/gpuintrin.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple amdgcn-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple amdgcn-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple nvptx64-nvidia-cuda -target-feature +ptx63 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=NVPTX
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple nvptx64-nvidia-cuda -target-feature +ptx63 -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=NVPTX
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple spirv64-- -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=SPIRV
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/../../lib/Headers/ -triple spirv64-- -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=SPIRV
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c:1695:16: error: SPIRV-NEXT: expected string not found in input
# | // SPIRV-NEXT: ret void
# | ^
# | <stdin>:560:24: note: scanning from here
# | call void @llvm.trap()
# | ^
# | <stdin>:592:5: note: possible intended match here
# | declare void @llvm.spv.group.memory.barrier.with.group.sync() #5
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Headers/gpuintrin.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 555: }
# | 556:
# | 557: ; Function Attrs: noinline noreturn nounwind optnone
# | 558: define internal spir_func void @__gpu_exit() #1 {
# | 559: entry:
# | 560: call void @llvm.trap()
# | next:1695'0 X error: no match found
# | 561: unreachable
# | next:1695'0 ~~~~~~~~~~~~~
# | 562: }
# | next:1695'0 ~~
# | 563:
# | next:1695'0 ~
# | 564: ; Function Attrs: nounwind willreturn memory(none)
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 565: declare i64 @llvm.spv.num.workgroups.i64(i32) #2
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 587:
# | next:1695'0 ~
# | 588: ; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 589: declare i32 @llvm.spv.wave.readlane.i32(i32, i32) #3
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 590:
# | next:1695'0 ~
# | 591: ; Function Attrs: convergent nocallback nofree nosync nounwind willreturn
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 592: declare void @llvm.spv.group.memory.barrier.with.group.sync() #5
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1695'1 ? possible intended match
# | 593:
# | next:1695'0 ~
# | 594: ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 595: declare i64 @llvm.ctlz.i64(i64, i1 immarg) #4
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 596:
# | next:1695'0 ~
# | 597: ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
# | next:1695'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/197789
More information about the cfe-commits
mailing list