Commit 076d3e2
authored
[mlir][ods] Verify access to operands in inferReturnTypes (llvm#112574)
The patch adds graceful handling of incorrectly constructed MLIR
operation with less operands than expected.1 parent 076aac5 commit 076d3e2
File tree
2 files changed
+27
-1
lines changed- mlir
- test/mlir-tblgen
- tools/mlir-tblgen
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3584 | 3584 | | |
3585 | 3585 | | |
3586 | 3586 | | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
3587 | 3605 | | |
3588 | 3606 | | |
3589 | 3607 | | |
| |||
3600 | 3618 | | |
3601 | 3619 | | |
3602 | 3620 | | |
3603 | | - | |
| 3621 | + | |
| 3622 | + | |
3604 | 3623 | | |
3605 | 3624 | | |
3606 | 3625 | | |
| |||
0 commit comments