Skip to content

Commit ac37a0d

Browse files
authored
[mlir] Fix integer comparison warning (#144794)
Introduced by #141457
1 parent 4dca445 commit ac37a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/IR/OpBase.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class ShapedTypeMatchesElementCountAndTypes<string shapedArg,
566566
PredOpTrait<"shaped type '" # shapedArg # "' matches '" # elementsArg # "' "
567567
"element count and types",
568568
And<[CPred<ElementCount<shapedArg>.result # " == "
569-
"$" # elementsArg # ".getTypes().size()">,
569+
"static_cast<int64_t>($" # elementsArg # ".getTypes().size())">,
570570
CPred<"::llvm::all_of($" # elementsArg # ".getTypes(), "
571571
"[&](::mlir::Type t) { return t == "
572572
# ElementType<shapedArg>.result # "; })">]>> {

0 commit comments

Comments
 (0)