aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2025-07-02 09:52:43 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2025-07-02 09:59:01 +0100
commit651c5208f8597f1f80349f6208e69bf9ea1c2862 (patch)
treecc526534124e96a534990b92e9c194310b6beb19
parent85bc8684173bb175fd4372a11b3fa3ef5455612f (diff)
downloadllvm-651c5208f8597f1f80349f6208e69bf9ea1c2862.zip
llvm-651c5208f8597f1f80349f6208e69bf9ea1c2862.tar.gz
llvm-651c5208f8597f1f80349f6208e69bf9ea1c2862.tar.bz2
VPlanRecipes.cpp - fix "'llvm::VPExpressionRecipe::computeCost': not all control paths return a value" MSVC warning. NFC.
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index f64bd2a..0202fa0 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -2656,6 +2656,7 @@ InstructionCost VPExpressionRecipe::computeCost(ElementCount VF,
Instruction::ZExt,
RedTy, SrcVecTy, Ctx.CostKind);
}
+ llvm_unreachable("Unknown VPExpressionRecipe::ExpressionTypes enum");
}
bool VPExpressionRecipe::mayReadOrWriteMemory() const {