Commit 59ef2c3
authored
[CUDA] Disallow use of address_space(N) on CUDA device variables. (llvm#142857)
The variables have implicit host-side shadow instances and explicit
address space attribute breaks them on the host.1 parent 649020c commit 59ef2c3
File tree
3 files changed
+21
-6
lines changed- clang
- include/clang/Basic
- lib/Sema
- test/SemaCUDA
3 files changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9432 | 9432 | | |
9433 | 9433 | | |
9434 | 9434 | | |
| 9435 | + | |
| 9436 | + | |
9435 | 9437 | | |
9436 | 9438 | | |
9437 | 9439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
| |||
679 | 678 | | |
680 | 679 | | |
681 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
682 | 691 | | |
683 | 692 | | |
684 | 693 | | |
685 | 694 | | |
686 | 695 | | |
687 | 696 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | 697 | | |
693 | 698 | | |
694 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
0 commit comments