Skip to content

Commit 2d195e2

Browse files
author
git apple-llvm automerger
committed
Merge commit '92c3af7c3e31' from llvm.org/main into next
2 parents d8abaa6 + 92c3af7 commit 2d195e2

File tree

1 file changed

+5
-2
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+5
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,8 +1351,11 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
13511351
~VPWidenIntrinsicRecipe() override = default;
13521352

13531353
VPWidenIntrinsicRecipe *clone() override {
1354-
return new VPWidenIntrinsicRecipe(*cast<CallInst>(getUnderlyingValue()),
1355-
VectorIntrinsicID, {op_begin(), op_end()},
1354+
if (Value *CI = getUnderlyingValue())
1355+
return new VPWidenIntrinsicRecipe(*cast<CallInst>(CI), VectorIntrinsicID,
1356+
{op_begin(), op_end()}, ResultTy,
1357+
getDebugLoc());
1358+
return new VPWidenIntrinsicRecipe(VectorIntrinsicID, {op_begin(), op_end()},
13561359
ResultTy, getDebugLoc());
13571360
}
13581361

0 commit comments

Comments
 (0)