Commit 54ae12b
[SYCL] Fix TCAndArchs leaking across offload kinds in BuildOffloadingActions (#22463)
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>1 parent 14c7adc commit 54ae12b
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7936 | 7936 | | |
7937 | 7937 | | |
7938 | 7938 | | |
| 7939 | + | |
7939 | 7940 | | |
7940 | 7941 | | |
7941 | 7942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
0 commit comments