Commit 9823690
authored
Fix crash with --spirv-preserve-auxdata and removed function (#2052)
In SPIRVReader, we erase unused functions pretty late, but we were applying
the ExtInst for `--spirv-preserve-auxdata` after that, causing us to try
to work on a deleted function which lead to a crash.
This isn't a problem for the SPIRVWriter case because the unused function
deletion happens way earlier.
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>1 parent b1782bf commit 9823690
File tree
2 files changed
+28
-4
lines changed- lib/SPIRV
- test/extensions/KHR/SPV_KHR_non_semantic_info
2 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3378 | 3378 | | |
3379 | 3379 | | |
3380 | 3380 | | |
3381 | | - | |
3382 | | - | |
3383 | | - | |
3384 | | - | |
3385 | 3381 | | |
3386 | 3382 | | |
3387 | 3383 | | |
3388 | 3384 | | |
3389 | 3385 | | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
3390 | 3391 | | |
3391 | 3392 | | |
3392 | 3393 | | |
| |||
Lines changed: 23 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 | + | |
0 commit comments