Skip to content

Commit 4c68061

Browse files
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:855:52: error: unused variable 'SupportedOp' [-Werror,-Wunused-const-variable]
1 parent c1ed4f6 commit 4c68061

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ class BinOpSameOpcodeHelper {
876876
isBinOpWithConstantInt(Instruction *I) {
877877
unsigned Opcode = I->getOpcode();
878878
assert(binary_search(SupportedOp, Opcode) && "Unsupported opcode.");
879+
(void)SupportedOp;
879880
auto *BinOp = cast<BinaryOperator>(I);
880881
if (auto *CI = dyn_cast<ConstantInt>(BinOp->getOperand(1)))
881882
return {CI, 1};

0 commit comments

Comments
 (0)