From 651c5208f8597f1f80349f6208e69bf9ea1c2862 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 2 Jul 2025 09:52:43 +0100 Subject: [PATCH] VPlanRecipes.cpp - fix "'llvm::VPExpressionRecipe::computeCost': not all control paths return a value" MSVC warning. NFC. --- llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp index f64bd2a0cb6a..0202fa0fc025 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 {