[clang] [clang][CodeGen] Fix invalid bitcast in InitCatchParam for non-zero address space pointers (PR #224680)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 2 02:55:16 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 56749 tests passed
* 1698 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.SemaCXX/address-space-placement.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 -fsyntax-only -fcxx-exceptions -verify C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\address-space-placement.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 -fsyntax-only -fcxx-exceptions -verify 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\address-space-placement.cpp'
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\address-space-placement.cpp Line 18: cannot catch reference with non-default address space (type '__attribute__((address_space(1))) int &')
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\address-space-placement.cpp Line 26: cannot catch reference with non-default address space (type '__attribute__((address_space(1))) int &')
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.SemaCXX/wasm-refs-and-tables.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 -std=c++11 -fcxx-exceptions -fexceptions -fsyntax-only -verify -triple wasm32 -Wno-unused-value -target-feature +reference-types C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\wasm-refs-and-tables.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 -std=c++11 -fcxx-exceptions -fexceptions -fsyntax-only -verify -triple wasm32 -Wno-unused-value -target-feature +reference-types 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\wasm-refs-and-tables.cpp'
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\wasm-refs-and-tables.cpp Line 22: cannot throw a WebAssembly reference type
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\wasm-refs-and-tables.cpp Line 22: cannot throw pointer with non-default address space (type '__attribute__((address_space(1))) __externref_t[0]')
# | 2 errors generated.
# `-----------------------------
# 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/224680


More information about the cfe-commits mailing list