diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 65528de8e7ac1..21bd4164385ab 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2749,7 +2749,7 @@ struct MemorySanitizerVisitor : public InstVisitor { assert(I.getType()->isVectorTy()); assert(I.getArgOperand(0)->getType()->isVectorTy()); - FixedVectorType *ParamType = + [[maybe_unused]] FixedVectorType *ParamType = cast(I.getArgOperand(0)->getType()); assert((I.arg_size() != 2) || (ParamType == cast(I.getArgOperand(1)->getType())));