[clang] [clang][AST] Add `StringLiteral::findZeroCodeUnit()` (PR #218601)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 25 02:19:17 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 56257 tests passed
* 1532 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGen/AArch64/abi-classify-arg-types.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c --check-prefixes=CHECK,DARWIN,LONG64
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c' --check-prefixes=CHECK,DARWIN,LONG64
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c:112:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_bitint129(ptr nofree noundef align 16 dead_on_return dereferenceable(32) %{{.*}})
# | ^
# | <stdin>:186:44: note: scanning from here
# | define void @arg_bitint128(i128 noundef %x) #0 {
# | ^
# | <stdin>:194:1: note: possible intended match here
# | define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 181: store i128 %storedv, ptr %x.addr, align 16
# | 182: ret void
# | 183: }
# | 184:
# | 185: ; Function Attrs: noinline nounwind optnone
# | 186: define void @arg_bitint128(i128 noundef %x) #0 {
# | check:112'0 { search range start (exclusive)
# | check:112'1 error: no match found in search range
# | 187: entry:
# | 188: %x.addr = alloca i128, align 16
# | 189: store i128 %x, ptr %x.addr, align 16
# | 190: ret void
# | 191: }
# | 192:
# | 193: ; Function Attrs: noinline nounwind optnone
# | 194: define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 {
# | check:112'2 ? possible intended match
# | 195: entry:
# | 196: %x.addr = alloca i256, align 16
# | 197: %1 = load i256, ptr %0, align 16
# | 198: %x = trunc i256 %1 to i129
# | 199: %storedv = sext i129 %x to i256
# | 200: store i256 %storedv, ptr %x.addr, align 16
# | 201: ret void
# | 202: }
# | 203:
# | 204: attributes #0 = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | 205:
# | 206: !llvm.ident = !{!0}
# | 207:
# | 208: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 813cda14c1ee83eb6aea549888c2fbf00ddd5aa6)"}
# | check:112'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/AArch64/abi-classify-arg-types.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp:39:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_nontrivial_copy(ptr nofree noundef align 4 dead_on_return dereferenceable(4) %{{.*}})
# | ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp'
# | ^
# | <stdin>:7:1: note: possible intended match here
# | define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp'
# | check:39'0 { search range start (exclusive)
# | check:39'1 error: no match found in search range
# | 2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGen\\AArch64\\abi-classify-arg-types.cpp"
# | 3: target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32"
# | 4: target triple = "arm64-apple-ios7.0"
# | 5:
# | 6: ; Function Attrs: mustprogress noinline nounwind optnone
# | 7: define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 {
# | check:39'2 ? possible intended match
# | 8: entry:
# | 9: %a.indirect_addr = alloca ptr, align 8
# | 10: store ptr %a, ptr %a.indirect_addr, align 8
# | 11: ret void
# | 12: }
# | .
# | .
# | .
# | 29:
# | 30: attributes #0 = { mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | 31:
# | 32: !llvm.ident = !{!0}
# | 33:
# | 34: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 813cda14c1ee83eb6aea549888c2fbf00ddd5aa6)"}
# | check:39'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/218601
More information about the cfe-commits
mailing list