diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp --- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp +++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp @@ -528,9 +528,9 @@ << operandName << " declaration"; if (decl.getType() && decl.getType() != varType) - return op->emitOpError() - << "expected private (" << varType << ") to be the same type as " - << operandName << " declaration (" << decl.getType() << ")"; + return op->emitOpError() << "expected " << operandName << " (" << varType + << ") to be the same type as " << operandName + << " declaration (" << decl.getType() << ")"; } return success();