Commit 7cc4722
[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (llvm#113470)
Added diagnosis to throw error when zero sized arrays are used in the
HIP device code. SWDEV-449592
---------
Co-authored-by: vigneshwar jayakumar <vigneshwar.jayakumar@amd.com>
(cherry picked from commit 854d730)
Reapply a commit which was reverted due to an issue in rocFFT that
needed to be fixed first.1 parent 5ea58a4 commit 7cc4722
File tree
3 files changed
+52
-1
lines changed- clang
- include/clang/Basic
- lib/Sema
- test/SemaHIP
3 files changed
+52
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6339 | 6339 | | |
6340 | 6340 | | |
6341 | 6341 | | |
6342 | | - | |
| 6342 | + | |
6343 | 6343 | | |
6344 | 6344 | | |
6345 | 6345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8806 | 8806 | | |
8807 | 8807 | | |
8808 | 8808 | | |
| 8809 | + | |
| 8810 | + | |
| 8811 | + | |
| 8812 | + | |
| 8813 | + | |
| 8814 | + | |
| 8815 | + | |
| 8816 | + | |
| 8817 | + | |
| 8818 | + | |
| 8819 | + | |
| 8820 | + | |
| 8821 | + | |
8809 | 8822 | | |
8810 | 8823 | | |
8811 | 8824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments