diff --git a/lib/Dialect/HLS/HLS.cpp b/lib/Dialect/HLS/HLS.cpp index 48211ae6..7034b8f8 100644 --- a/lib/Dialect/HLS/HLS.cpp +++ b/lib/Dialect/HLS/HLS.cpp @@ -1000,12 +1000,11 @@ void AffineSelectOp::print(OpAsmPrinter &p) { p.printOperand(getTrueValue()); p << ", "; p.printOperand(getFalseValue()); - p << " : "; - p.printType(getType()); - // Print the attribute list. p.printOptionalAttrDict((*this)->getAttrs(), /*elidedAttrs=*/getConditionAttrStrName()); + p << " : "; + p.printType(getType()); } IntegerSet AffineSelectOp::getIntegerSet() {