[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:15 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 61792 tests passed
* 1986 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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fsyntax-only -fcxx-exceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/address-space-placement.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fsyntax-only -fcxx-exceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/address-space-placement.cpp
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_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 /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/wasm-refs-and-tables.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/wasm-refs-and-tables.cpp
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_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 /home/gha/actions-runner/_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