diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp index 382521d090f4e..0cf99d8245714 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp @@ -241,7 +241,7 @@ static bool sinkScalarOperands(VPlan &Plan) { /// If \p R is a region with a VPBranchOnMaskRecipe in the entry block, return /// the mask. -VPValue *getPredicatedMask(VPRegionBlock *R) { +static VPValue *getPredicatedMask(VPRegionBlock *R) { auto *EntryBB = dyn_cast(R->getEntry()); if (!EntryBB || EntryBB->size() != 1 || !isa(EntryBB->begin()))