[llvm] 13a39ea - [Sema] Fix Wunused-but-set-variable warning(NFC) (#169220)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 23 20:49:11 PST 2025
Author: hstk30-hw
Date: 2025-11-24T12:49:07+08:00
New Revision: 13a39eaa0bcf6c439e8b59571f4afe593d658623
URL: https://github.com/llvm/llvm-project/commit/13a39eaa0bcf6c439e8b59571f4afe593d658623
DIFF: https://github.com/llvm/llvm-project/commit/13a39eaa0bcf6c439e8b59571f4afe593d658623.diff
LOG: [Sema] Fix Wunused-but-set-variable warning(NFC) (#169220)
Fix warning:
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1455:23: warning:
variable 'Store' set but not used [-Wunused-but-set-variable]
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 003a049da91e4..2220d1a045de4 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1489,6 +1489,7 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
// operand against vputils::isSingleScalar.
assert(RepOrWidenR != Store->getStoredValue() ||
vputils::isSingleScalar(Store->getStoredValue()));
+ (void)Store;
return true;
}
More information about the llvm-commits
mailing list