Skip to content

Commit 3c60c03

Browse files
authored
Mark variable as maybe unused (only used in debug mode) (#157875)
1 parent fc9fe0f commit 3c60c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3903,7 +3903,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
39033903
ReturnType->getPrimitiveSizeInBits());
39043904

39053905
if (I.arg_size() == 3) {
3906-
auto *AccumulatorType = cast<FixedVectorType>(I.getOperand(0)->getType());
3906+
[[maybe_unused]] auto *AccumulatorType = cast<FixedVectorType>(I.getOperand(0)->getType());
39073907
assert(AccumulatorType == ReturnType);
39083908
}
39093909

0 commit comments

Comments
 (0)