[Mlir-commits] [mlir] [mlir] Fix warning, NFC (PR #211204)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jul 22 01:57:46 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Jianjian Guan (jacquesguan)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/211204.diff


1 Files Affected:

- (modified) mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp (+3-3) 


``````````diff
diff --git a/mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp b/mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
index 6bf0fe85bb62f..4e8ef252a10c9 100644
--- a/mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
+++ b/mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
@@ -314,9 +314,9 @@ struct ConvertFOpLowering : public ConvertOpToLLVMPattern<arith::ConvertFOp> {
     // pair of FP types that are valid LLVM types.
     [[maybe_unused]] auto srcType = getElementTypeOrSelf(op.getIn().getType());
     [[maybe_unused]] auto dstType = getElementTypeOrSelf(op.getType());
-    assert((srcType.isBF16() && dstType.isF16()) ||
-           (srcType.isF16() && dstType.isBF16()) &&
-               "only bf16 <-> f16 conversions are supported");
+    assert(((srcType.isBF16() && dstType.isF16()) ||
+            (srcType.isF16() && dstType.isBF16())) &&
+           "only bf16 <-> f16 conversions are supported");
 
     Type convertedType = getTypeConverter()->convertType(op.getType());
     if (!convertedType)

``````````

</details>


https://github.com/llvm/llvm-project/pull/211204


More information about the Mlir-commits mailing list