diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td index 6f199123b0f4..2598cc989d4e 100644 --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -1137,8 +1137,9 @@ class TCOpIsBroadcastableToRes : And<[ IsShapedTypePred>, SubstLeaves<"$_self", "$_op.getResult(" # resId # ")->getType()", IsShapedTypePred>, - CPred<"OpTrait::util::getBroadcastedType($_op.getOperand(" # opId # "), " - "$_op.getResult(" # resId # "))">]>; + CPred<"OpTrait::util::getBroadcastedType(" + "$_op.getOperand(" # opId # ")->getType(), " + "$_op.getResult(" # resId # ")->getType())">]>; // Predicate to verify that all the operands at the given `indices` // have the same element type.