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 @@ -529,8 +529,9 @@ if (decl.getType() && decl.getType() != varType) return op->emitOpError() - << "expected private (" << varType << ") to be the same type as " - << operandName << " declaration (" << decl.getType() << ")"; + << "expected " << operandName << " (" << varType + << ") to be the same type as " << operandName + << " declaration (" << decl.getType() << ")"; } return success();