[clang] clang: Don't set redundant intrinsic callsite attributes (PR #242158)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 13 00:19:50 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 64665 tests passed
* 845 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGenCXX/cfi-vtable-check.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/24/include -nostdsysteminc -triple x86_64-unknown-linux -fvisibility=hidden -fsanitize=cfi-vcall -fno-sanitize-trap=cfi-vcall -fsanitize-minimal-runtime -fsanitize-undefined-strip-path-components=-1 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --implicit-check-not="private unnamed_addr constant" --check-prefix=MIN /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.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/24/include -nostdsysteminc -triple x86_64-unknown-linux -fvisibility=hidden -fsanitize=cfi-vcall -fno-sanitize-trap=cfi-vcall -fsanitize-minimal-runtime -fsanitize-undefined-strip-path-components=-1 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck '--implicit-check-not=private unnamed_addr constant' --check-prefix=MIN /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp
# 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/24/include -nostdsysteminc -triple x86_64-unknown-linux -fvisibility=hidden -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -fsanitize-skip-hot-cutoff=cfi-vcall=0.5 -disable-llvm-passes -fsanitize-undefined-strip-path-components=-1 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --implicit-check-not="private unnamed_addr constant" --check-prefix=TRAP_CUTOFF /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.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/24/include -nostdsysteminc -triple x86_64-unknown-linux -fvisibility=hidden -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -fsanitize-skip-hot-cutoff=cfi-vcall=0.5 -disable-llvm-passes -fsanitize-undefined-strip-path-components=-1 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck '--implicit-check-not=private unnamed_addr constant' --check-prefix=TRAP_CUTOFF /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp:107:17: error: TRAP_CUTOFF: expected string not found in input
# | // TRAP_CUTOFF: attributes #[[ATTR4]] = { nomerge noreturn nounwind }
# |                 ^
# | <stdin>:42:74: note: scanning from here
# | attributes #3 = { cold noreturn nounwind memory(inaccessiblemem: write) }
# |                                                                          ^
# | <stdin>:42:74: note: with "ATTR4" equal to "4"
# | attributes #3 = { cold noreturn nounwind memory(inaccessiblemem: write) }
# |                                                                          ^
# | <stdin>:43:1: note: possible intended match here
# | attributes #4 = { nomerge }
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenCXX/cfi-vtable-check.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             37: declare void @llvm.ubsantrap(i8 immarg) #3 
# |             38:  
# |             39: attributes #0 = { mustprogress noinline nounwind optnone "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" } 
# |             40: attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } 
# |             41: attributes #2 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) } 
# |             42: attributes #3 = { cold noreturn nounwind memory(inaccessiblemem: write) } 
# | check:107'0                                                                             {   search range start (exclusive)
# | check:107'1                                                                                 error: no match found in search range
# | check:107'2                                                                                 with "ATTR4" equal to "4"
# |             43: attributes #4 = { nomerge } 
# | check:107'3     ?                             possible intended match
# |             44:  
# |             45: !llvm.ident = !{!0} 
# |             46:  
# |             47: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project c0ef198c128345e03bf14a99e3a7f327cfac9175)"} 
# |             48: !1 = !{} 
# |             49: !2 = !{!"branch_weights", i32 1048575, i32 1} 
# | check:107'4                                                   } 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/242158


More information about the cfe-commits mailing list