[clang] [Clang][counted_by] Honor counted_by in __bdos on direct struct access (PR #201161)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 8 17:56:35 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `intel-sycl-gpu` running on `intel-sycl-gpu-01` while building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/225/builds/9437
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGen/attr-counted-by-issue200014.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 11
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O0 -Wno-missing-declarations -disable-O0-optnone -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/opt -S -passes=mem2reg,sroa | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=FRONTEND
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O0 -Wno-missing-declarations -disable-O0-optnone -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/opt -S -passes=mem2reg,sroa
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=FRONTEND
# RUN: at line 14
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O0 -Wno-missing-declarations -fexperimental-new-constant-interpreter -disable-O0-optnone -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/opt -S -passes=mem2reg,sroa | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=FRONTEND
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O0 -Wno-missing-declarations -fexperimental-new-constant-interpreter -disable-O0-optnone -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/opt -S -passes=mem2reg,sroa
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=FRONTEND
# RUN: at line 20
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O2 -Wno-missing-declarations -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=O2
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -O2 -Wno-missing-declarations -emit-llvm -o - /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/FileCheck /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c --check-prefix=O2
# .---command stderr------------
# | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c:285:13: error: O2-SAME: expected string not found in input
# | // O2-SAME: ptr noundef readonly captures(none) [[P:%.*]]) local_unnamed_addr #[[ATTR4:[0-9]+]] {
# | ^
# | <stdin>:80:66: note: scanning from here
# | define dso_local range(i64 0, -9223372036854775808) i64 @ptr_fam(ptr nofree noundef readonly captures(none) %p) local_unnamed_addr #4 {
# | ^
# | <stdin>:80:73: note: possible intended match here
# | define dso_local range(i64 0, -9223372036854775808) i64 @ptr_fam(ptr nofree noundef readonly captures(none) %p) local_unnamed_addr #4 {
# | ^
# | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c:313:82: error: undefined variable: ATTR4
# | // O2-SAME: ptr noundef readonly captures(none) [[P:%.*]]) local_unnamed_addr #[[ATTR4]] {
# | ^
# | <stdin>:88:79: note: possible intended match here
# | define dso_local range(i64 0, -9223372036854775808) i64 @ptr_subscript(ptr nofree noundef readonly captures(none) %p) local_unnamed_addr #4 {
# | ^
# | /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c:335:13: error: O2-SAME: expected string not found in input
# | // O2-SAME: ptr noundef readnone [[P:%.*]]) local_unnamed_addr #[[ATTR3]] {
# | ^
# | <stdin>:97:34: note: scanning from here
# | define dso_local i64 @ptr_addrof(ptr nofree noundef readnone %p) local_unnamed_addr #3 {
# | ^
# | <stdin>:97:34: note: with "ATTR3" equal to "3"
# | define dso_local i64 @ptr_addrof(ptr nofree noundef readnone %p) local_unnamed_addr #3 {
# | ^
# | <stdin>:97:41: note: possible intended match here
# | define dso_local i64 @ptr_addrof(ptr nofree noundef readnone %p) local_unnamed_addr #3 {
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/CodeGen/attr-counted-by-issue200014.c
...
```
</details>
https://github.com/llvm/llvm-project/pull/201161
More information about the cfe-commits
mailing list