Skip to content

Commit deab726

Browse files
dcaballegithub-actions[bot]
authored andcommitted
Automerge: [mlir] Fix integer comparison warning (#144794)
Introduced by llvm/llvm-project#141457
2 parents 4576438 + ac37a0d commit deab726

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)