Skip to content

Commit

Permalink
Fix an unused variable warning in no-asserts build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gribozavr committed May 20, 2022
1 parent 64748ef commit 11a09af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -6718,6 +6718,7 @@ static T *performExtractsShuffleAction(
Mask[Idx] = (Res.second ? Idx : Mask[Idx]) + VF;
}
auto *V = ValueSelect::get<T *>(Base);
(void)V;
assert((!V || GetVF(V) == Mask.size()) &&
"Expected base vector of VF number of elements.");
Prev = Action(Mask, {nullptr, Res.first});
Expand Down

0 comments on commit 11a09af

Please sign in to comment.