Commit c62299a
authored
spirv-val: Fix crash with bad OpUntypedArrayLengthKHR (#6493)
working on the internal extension (and being new to Untyped Pointers
still) I accidentally set the `OpUntypedArrayLengthKHR` Pointer ID to be
`OpTypeUntypedPointerKHR` and it just crashed in `spirv-val`... so now
it doesn't crash and provides hopefully a likely good answer for the
next person like me
... the issue is `pointer` and `type` are really easy to mix up...
`OpTypeUntyped` will always be my favorite thing to explain to those new
to SPIR-V 😄1 parent a1eace9 commit c62299a
2 files changed
+43
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2140 | 2140 | | |
2141 | 2141 | | |
2142 | 2142 | | |
2143 | | - | |
| 2143 | + | |
| 2144 | + | |
2144 | 2145 | | |
2145 | | - | |
| 2146 | + | |
2146 | 2147 | | |
2147 | 2148 | | |
2148 | 2149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8010 | 8010 | | |
8011 | 8011 | | |
8012 | 8012 | | |
8013 | | - | |
| 8013 | + | |
| 8014 | + | |
| 8015 | + | |
| 8016 | + | |
| 8017 | + | |
| 8018 | + | |
| 8019 | + | |
| 8020 | + | |
| 8021 | + | |
| 8022 | + | |
| 8023 | + | |
| 8024 | + | |
| 8025 | + | |
| 8026 | + | |
| 8027 | + | |
| 8028 | + | |
| 8029 | + | |
| 8030 | + | |
| 8031 | + | |
| 8032 | + | |
| 8033 | + | |
| 8034 | + | |
| 8035 | + | |
| 8036 | + | |
| 8037 | + | |
| 8038 | + | |
| 8039 | + | |
| 8040 | + | |
| 8041 | + | |
| 8042 | + | |
| 8043 | + | |
| 8044 | + | |
| 8045 | + | |
| 8046 | + | |
| 8047 | + | |
| 8048 | + | |
| 8049 | + | |
| 8050 | + | |
| 8051 | + | |
| 8052 | + | |
8014 | 8053 | | |
8015 | 8054 | | |
8016 | 8055 | | |
| |||
0 commit comments