Skip to content

Commit 76fae4f

Browse files
committed
Allow null underlyInstr
1 parent 96f76b0 commit 76fae4f

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ class VPReductionEVLRecipe : public VPSingleDefRecipe {
21562156
: VPSingleDefRecipe(
21572157
VPDef::VPReductionEVLSC,
21582158
ArrayRef<VPValue *>({R->getChainOp(), R->getVecOp(), EVL}),
2159-
R->getUnderlyingInstr()),
2159+
cast_or_null<Instruction>(R->getUnderlyingValue())),
21602160
RdxDesc(R->getRecurrenceDescriptor()), IsOrdered(R->isOrdered()) {
21612161
VPValue *CondOp = R->getCondOp();
21622162
if (CondOp)

0 commit comments

Comments
 (0)