Skip to content

[SYCL] Fix TCAndArchs leaking across offload kinds in BuildOffloadingActions#22463

Open
wenju-he wants to merge 1 commit into
intel:syclfrom
wenju-he:BuildOffloadingActions-TCAndArchs.clear
Open

[SYCL] Fix TCAndArchs leaking across offload kinds in BuildOffloadingActions#22463
wenju-he wants to merge 1 commit into
intel:syclfrom
wenju-he:BuildOffloadingActions-TCAndArchs.clear

Conversation

@wenju-he

Copy link
Copy Markdown
Contributor

TCAndArchs was declared outside the per-kind loop but only cleared inside it after the bug was introduced by ccdf2c6. Without the clear, entries from prior kinds (e.g. OpenMP's spir64 TC) accumulated and were incorrectly used when processing subsequent kinds (SYCL), causing SYCL device actions to pick up the wrong toolchain triple.

CMPLRLLVM-76332

…Actions

TCAndArchs was declared outside the per-kind loop but only cleared inside it
after the bug was introduced by ccdf2c6. Without the clear, entries from
prior kinds (e.g. OpenMP's spir64 TC) accumulated and were incorrectly used
when processing subsequent kinds (SYCL), causing SYCL device actions to pick
up the wrong toolchain triple.

CMPLRLLVM-76332

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wenju-he wenju-he requested a review from a team as a code owner June 27, 2026 23:01
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.

1 participant