[Mlir-commits] [mlir] ac37a0d - [mlir] Fix integer comparison warning (#144794)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 18 14:11:24 PDT 2025
Author: Diego Caballero
Date: 2025-06-18T14:11:21-07:00
New Revision: ac37a0df949afc31d12de75f85306db32dd50713
URL: https://github.com/llvm/llvm-project/commit/ac37a0df949afc31d12de75f85306db32dd50713
DIFF: https://github.com/llvm/llvm-project/commit/ac37a0df949afc31d12de75f85306db32dd50713.diff
LOG: [mlir] Fix integer comparison warning (#144794)
Introduced by https://github.com/llvm/llvm-project/pull/141457
Added:
Modified:
mlir/include/mlir/IR/OpBase.td
Removed:
################################################################################
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