Skip to content

Commit 4c03391

Browse files
committed
fix emitError string concatenation
1 parent f7cabe4 commit 4c03391

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ mlir::Attribute mlir::polynomial::PolynomialAttr::parse(AsmParser &parser,
105105
if (llvm::is_contained(exponents, parsedMonomial.exponent)) {
106106
llvm::SmallString<16> coeffString;
107107
parsedMonomial.exponent.toStringSigned(coeffString);
108-
parser.emitError(parser.getCurrentLocation(),
109-
"at most one monomial may have exponent " + coeffString +
110-
", but found multiple");
108+
parser.emitError(parser.getCurrentLocation())
109+
<< "at most one monomial may have exponent " << coeffString
110+
<< ", but found multiple";
111111
return {};
112112
}
113113
exponents.insert(parsedMonomial.exponent);

0 commit comments

Comments
 (0)