Skip to content

Commit 651c520

Browse files
committed
VPlanRecipes.cpp - fix "'llvm::VPExpressionRecipe::computeCost': not all control paths return a value" MSVC warning. NFC.
1 parent 85bc868 commit 651c520

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,6 +2656,7 @@ InstructionCost VPExpressionRecipe::computeCost(ElementCount VF,
26562656
Instruction::ZExt,
26572657
RedTy, SrcVecTy, Ctx.CostKind);
26582658
}
2659+
llvm_unreachable("Unknown VPExpressionRecipe::ExpressionTypes enum");
26592660
}
26602661

26612662
bool VPExpressionRecipe::mayReadOrWriteMemory() const {

0 commit comments

Comments
 (0)