Commit 5ace973
committed
[VPlan] Use correct constructor when cloning VPWidenIntrinsicRecipe without underlying CallInst
I noticed this when working on a patch downstream, and I don't think this is an issue upstream yet.
But if a VPWidenIntrinsicRecipe is created without an underlying CallInst, e.g. in createEVLRecipe, it will crash if you try to clone it because it assumes the CallInst always exists.
This fixes it by using the CallInst-less constructor in this case.1 parent f218cd2 commit 5ace973
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | | - | |
1351 | | - | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1352 | 1355 | | |
1353 | 1356 | | |
1354 | 1357 | | |
| |||
0 commit comments