Commit cd09f4b
authored
[CodeGen] This patch fix a bug that may caused error for a self-defined target in SelectionDAG::getNode (llvm#75320)
we need first judge N1.getNumOperands() > 0.
If Lowering Generated SDNode like.
```
v2i32 t20: TargetOpNode.
i32 t21: extract_vector_elt t20 0
i32 t22: extract_vector_elt t20 1
```
will cause a error.1 parent 2e3d77d commit cd09f4b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6858 | 6858 | | |
6859 | 6859 | | |
6860 | 6860 | | |
6861 | | - | |
6862 | | - | |
| 6861 | + | |
| 6862 | + | |
6863 | 6863 | | |
6864 | 6864 | | |
6865 | 6865 | | |
| |||
6976 | 6976 | | |
6977 | 6977 | | |
6978 | 6978 | | |
6979 | | - | |
| 6979 | + | |
6980 | 6980 | | |
6981 | 6981 | | |
6982 | 6982 | | |
| |||
0 commit comments