Commit cff6565
authored
[mlir][spirv] Fix incorrect argument erasure in deserializer (llvm#134610)
The current implementation iterates and modifies the list of arguments
at the same time. Depending on the number of arguments this will trigger
an assert: `assert(index < arguments.size())`. This change replaces loop
with a range based erasure.1 parent 0d71d9a commit cff6565
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2077 | 2077 | | |
2078 | 2078 | | |
2079 | 2079 | | |
2080 | | - | |
2081 | | - | |
| 2080 | + | |
2082 | 2081 | | |
2083 | 2082 | | |
2084 | 2083 | | |
| |||
0 commit comments