[llvm-branch-commits] [llvm] 5408fdc - [VPlan] Fix -Wunused-variable after a813090072c0527eb6ed51dd2ea4f54cb6bc72a0
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Nov 29 10:42:26 PST 2020
Author: Fangrui Song
Date: 2020-11-29T10:38:01-08:00
New Revision: 5408fdcd78ad4783a39c0c18d5a18a7d926514b7
URL: https://github.com/llvm/llvm-project/commit/5408fdcd78ad4783a39c0c18d5a18a7d926514b7
DIFF: https://github.com/llvm/llvm-project/commit/5408fdcd78ad4783a39c0c18d5a18a7d926514b7.diff
LOG: [VPlan] Fix -Wunused-variable after a813090072c0527eb6ed51dd2ea4f54cb6bc72a0
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 1b716e1051cc0..517d754b4ea61 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2465,8 +2465,7 @@ void InnerLoopVectorizer::vectorizeInterleaveGroup(
SmallVector<Value *, 4> StoredVecs;
for (unsigned i = 0; i < InterleaveFactor; i++) {
// Interleaved store group doesn't allow a gap, so each index has a member
- Instruction *Member = Group->getMember(i);
- assert(Member && "Fail to get a member from an interleaved store group");
+ assert(Group->getMember(i) && "Fail to get a member from an interleaved store group");
Value *StoredVec = State.get(StoredValues[i], Part);
More information about the llvm-branch-commits
mailing list