Commit 3416a8b
committed
[WebAssembly] Check intrinsic argument count before Any/All combine
This code is activated on all INTRINSIC_WO_CHAIN but only handles
a selection. However it was trying to read the arguments before
checking which intrinsic it was handling. This fails for intrinsics
that have no arguments.1 parent 9c0e09e commit 3416a8b
File tree
2 files changed
+10
-1
lines changed- llvm
- lib/Target/WebAssembly
- test/CodeGen/WebAssembly
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3209 | 3209 | | |
3210 | 3210 | | |
3211 | 3211 | | |
3212 | | - | |
| 3212 | + | |
| 3213 | + | |
3213 | 3214 | | |
3214 | 3215 | | |
3215 | 3216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
135 | 143 | | |
0 commit comments