Commit 170578d
[mlir][SPIRV] Do not access erased op in SPIRV->LLVM lowering (#148373)
This commit fixes two occurrences where an erased op was accessed at a
later point of time. That won't work anymore in a One-Shot Dialect
Conversion and triggers a use-after-free sanitizer error.
After the One-Shot Dialect Conversion refactoring, a
`ConversionPatternRewriter` will behave more like a normal
`PatternRewriter`.
---------
Co-authored-by: Markus Böck <markus.boeck02@gmail.com>1 parent bce3cbc commit 170578d
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
782 | 784 | | |
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
786 | 788 | | |
787 | | - | |
788 | | - | |
| 789 | + | |
| 790 | + | |
789 | 791 | | |
790 | 792 | | |
791 | 793 | | |
| |||
1426 | 1428 | | |
1427 | 1429 | | |
1428 | 1430 | | |
1429 | | - | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | 1433 | | |
| |||
1444 | 1445 | | |
1445 | 1446 | | |
1446 | 1447 | | |
| 1448 | + | |
1447 | 1449 | | |
1448 | 1450 | | |
1449 | 1451 | | |
| |||
0 commit comments