[clang] [clang] Create PointerToBoolean casts for C casts (PR #155368)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 27 21:35:36 PDT 2025


Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/155368 at github.com>


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/26289

<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/issue155126.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc -std=c23 /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c -emit-llvm -o - | /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c # RUN: at line 2
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc -std=c23 /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c -emit-llvm -o -
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c
/Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c:6:17: error: CHECK-LABEL: expected string not found in input
// CHECK-LABEL: define dso_local void @foo(
                ^
<stdin>:1:1: note: scanning from here
; ModuleID = '/Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c'
^
<stdin>:7:1: note: possible intended match here
define void @foo() #0 {
^

Input file: <stdin>
Check file: /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: ; ModuleID = '/Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c' 
label:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: source_filename = "/Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/CodeGen/issue155126.c" 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32" 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: target triple = "arm64-apple-darwin23.6.0" 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5:  
label:6'0     ~
           6: ; Function Attrs: noinline nounwind optnone 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           7: define void @foo() #0 { 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~
label:6'1     ?                        possible intended match
           8: entry: 
label:6'0     ~~~~~~~
           9:  %e1 = alloca i8, align 1 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
          10:  store i8 0, ptr %e1, align 1 
label:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          11:  ret void 
label:6'0     ~~~~~~~~~~
          12: } 
label:6'0     ~~
...

```

</details>

https://github.com/llvm/llvm-project/pull/155368


More information about the cfe-commits mailing list