Commit 2ed19c4
committed
[TableGen] Fix OperandMap table size
- add missing value for OPERAND_LAST type. If function
'getNamedOperandIdx' is called with NamedIdx=OPERAND_LAST then
we are accessing first element of next row in 2dim table.
- in most cases this will work unnoticed because 2dim OperandMap
is sparse with most elements set to '-1'.1 parent 689ef5f commit 2ed19c4
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
| 303 | + | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
0 commit comments