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
d0k committed May 23, 2022
1 parent dbd1ba2 commit 2f2ca30
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 2f2ca30

Please sign in to comment.