[Mlir-commits] [mlir] Fix variable only used by assert in #172716. (PR #172788)

Yi Zhang llvmlistbot at llvm.org
Wed Dec 17 20:28:55 PST 2025


https://github.com/cathyzhyi created https://github.com/llvm/llvm-project/pull/172788

None

>From ec08befbcca7205ba3384417e5392dbefbf6c01f Mon Sep 17 00:00:00 2001
From: Yi Zhang <cathyzhyi at google.com>
Date: Wed, 17 Dec 2025 23:26:24 -0500
Subject: [PATCH] Fix variable only used by assert in #172716.

---
 mlir/lib/ExecutionEngine/APFloatWrappers.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/lib/ExecutionEngine/APFloatWrappers.cpp b/mlir/lib/ExecutionEngine/APFloatWrappers.cpp
index 9deb900fbe35d..b30a9072c0094 100644
--- a/mlir/lib/ExecutionEngine/APFloatWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/APFloatWrappers.cpp
@@ -212,6 +212,7 @@ _mlir_apfloat_fused_multiply_add(int32_t semantics, uint64_t operand,
       multiplicand_, addend_, llvm::RoundingMode::NearestTiesToEven);
   assert(stat == llvm::APFloatBase::opOK &&
          "expected fusedMultiplyAdd status to be OK");
+  (void)stat;
   return operand_.bitcastToAPInt().getZExtValue();
 }
 



More information about the Mlir-commits mailing list