[Mlir-commits] [mlir] [mlir] Fix integer comparison warning (PR #144794)
Diego Caballero
llvmlistbot at llvm.org
Wed Jun 18 14:08:40 PDT 2025
https://github.com/dcaballe created https://github.com/llvm/llvm-project/pull/144794
Introduced by https://github.com/llvm/llvm-project/pull/141457
>From 0fe77dd73797d27bfaf7dd2ede6ed55e01616dba Mon Sep 17 00:00:00 2001
From: Diego Caballero <dcaballero at nvidia.com>
Date: Wed, 18 Jun 2025 21:07:17 +0000
Subject: [PATCH] [mlir] Fix integer comparison warning
Introduced by https://github.com/llvm/llvm-project/pull/141457
---
mlir/include/mlir/IR/OpBase.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td
index b3fabe409806f..43ef28624fb19 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -566,7 +566,7 @@ class ShapedTypeMatchesElementCountAndTypes<string shapedArg,
PredOpTrait<"shaped type '" # shapedArg # "' matches '" # elementsArg # "' "
"element count and types",
And<[CPred<ElementCount<shapedArg>.result # " == "
- "$" # elementsArg # ".getTypes().size()">,
+ "static_cast<int64_t>($" # elementsArg # ".getTypes().size())">,
CPred<"::llvm::all_of($" # elementsArg # ".getTypes(), "
"[&](::mlir::Type t) { return t == "
# ElementType<shapedArg>.result # "; })">]>> {
More information about the Mlir-commits
mailing list