[clang] [clang][bytecode] Support different integral types (e.g. addresses) (PR #185028)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 08:00:58 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53091 tests passed
* 1011 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/ByteCode/builtin-bit-cast.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\23\include -nostdsysteminc -verify=ref,both -std=c++2a -fsyntax-only C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\builtin-bit-cast.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\23\include' -nostdsysteminc -verify=ref,both -std=c++2a -fsyntax-only 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\builtin-bit-cast.cpp'
# .---command stderr------------
# | error: diagnostics with 'error' severity expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\builtin-bit-cast.cpp Line 599 'both-error': not an integral constant expression
# | error: diagnostics with 'error' severity seen but not expected:
# | Line 597: cast from pointer to smaller type 'long' loses information
# | Line 597: cast from pointer to smaller type 'long' loses information
# | Line 597: cast from pointer to smaller type 'long' loses information
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\builtin-bit-cast.cpp Line 596: no return statement in constexpr function
# | 5 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/const-init.c</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -triple i386-pc-linux-gnu -ffreestanding -Wno-pointer-to-int-cast -Wno-int-conversion -ffp-exception-behavior=strict -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c -fexperimental-new-constant-interpreter | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple i386-pc-linux-gnu -ffreestanding -Wno-pointer-to-int-cast -Wno-int-conversion -ffp-exception-behavior=strict -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c' -fexperimental-new-constant-interpreter
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c:94:11: error: initializer element is not a compile-time constant
# | 94 | int g15 = (int) (char) ((void*) 0 + 255);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\const-init.c
# `-----------------------------
# error: command failed with exit status: 2
--
```
</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/185028
More information about the cfe-commits
mailing list