Skip to content

Commit 4c7aa6f

Browse files
committed
[msan] Fix -Wunused-variable in non-assertion builds after #124421
1 parent 23763a1 commit 4c7aa6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4702,7 +4702,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
47024702
// These AVX512 variants contain the rounding mode as a trailing flag.
47034703
// Earlier variants do not have a trailing flag and are already handled
47044704
// by maybeHandleSimpleNomemIntrinsic(I, 0) via handleUnknownIntrinsic.
4705-
bool Success = maybeHandleSimpleNomemIntrinsic(I, /*trailingFlags=*/1);
4705+
[[maybe_unused]] bool Success =
4706+
maybeHandleSimpleNomemIntrinsic(I, /*trailingFlags=*/1);
47064707
assert(Success);
47074708
break;
47084709
}

0 commit comments

Comments
 (0)