Skip to content

[SYCL] Update device_global test after global_ctors address space change - #23156

Merged
tfzee merged 1 commit into
sycl-webfrom
fix_device_global_test
Sep 15, 2026
Merged

tfzee merged 1 commit into
sycl-webfrom
fix_device_global_test

Conversation

@tfzee

@tfzee tfzee commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Upstream commit 8be8161 ("[clang][CodeGen] Stop overriding
GlobalVariable's default address space") stopped forcing address space 0 in ConstantInitBuilder::createGlobal, so @llvm.global_ctors is now emitted in the target's default globals address space (addrspace(1) for SPIR/SPIR-V).

Update the CHECK line in clang/test/CodeGenSYCL/device_global.cpp accordingly to fix the test.

@tfzee
tfzee changed the base branch from sycl to sycl-web September 14, 2026 09:54
@tfzee
tfzee marked this pull request as ready for review September 14, 2026 09:56
@tfzee
tfzee requested a review from a team as a code owner September 14, 2026 09:56
@tfzee
tfzee merged commit 2bcc322 into sycl-web Sep 15, 2026
28 of 36 checks passed
@tfzee
tfzee deleted the fix_device_global_test branch September 15, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants