Commit 4c613aa
authored
Fix incorrect OpAccessChain for inherited struct members (#8005)
Adds a new test case to verify that the OpAccessChain is generated
correctly for inherited members of a struct.
This fixes an issue where the indices for a base class were being
prepended to the indices of the derived class, resulting in an incorrect
access chain.
Fixes #79681 parent 948629a commit 4c613aa
File tree
2 files changed
+31
-2
lines changed- tools/clang
- lib/SPIRV
- test/CodeGenSPIRV
2 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8861 | 8861 | | |
8862 | 8862 | | |
8863 | 8863 | | |
| 8864 | + | |
| 8865 | + | |
| 8866 | + | |
| 8867 | + | |
| 8868 | + | |
8864 | 8869 | | |
8865 | 8870 | | |
8866 | 8871 | | |
| |||
8871 | 8876 | | |
8872 | 8877 | | |
8873 | 8878 | | |
8874 | | - | |
8875 | | - | |
| 8879 | + | |
8876 | 8880 | | |
8877 | 8881 | | |
8878 | 8882 | | |
| |||
Lines changed: 25 additions & 0 deletions
| 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 | + | |
0 commit comments