diff --git a/mlir/lib/Dialect/Affine/EDSC/Builders.cpp b/mlir/lib/Dialect/Affine/EDSC/Builders.cpp --- a/mlir/lib/Dialect/Affine/EDSC/Builders.cpp +++ b/mlir/lib/Dialect/Affine/EDSC/Builders.cpp @@ -156,7 +156,7 @@ return createBinaryHandle(lhs, rhs); } else if (thisType.isa() || thisType.isa()) { auto aggregateType = thisType.cast(); - if (aggregateType.getElementType().isSignedInteger()) + if (aggregateType.getElementType().isSignlessInteger()) return createBinaryHandle(lhs, rhs); else if (aggregateType.getElementType().isa()) return createBinaryHandle(lhs, rhs); @@ -225,7 +225,7 @@ (void)lhsType; (void)rhsType; assert(lhsType == rhsType && "cannot mix types in operators"); - assert((lhsType.isa() || lhsType.isSignedInteger()) && + assert((lhsType.isa() || lhsType.isSignlessInteger()) && "only integer comparisons are supported"); auto op = ScopedContext::getBuilder().create(