[Mlir-commits] [mlir] a7a4bb6 - [mlir][openacc][NFC] Fix verifier message
Valentin Clement
llvmlistbot at llvm.org
Thu May 25 10:04:27 PDT 2023
Author: Valentin Clement
Date: 2023-05-25T10:04:20-07:00
New Revision: a7a4bb691c1da37ff275fee39fb04ebd0857f5ba
URL: https://github.com/llvm/llvm-project/commit/a7a4bb691c1da37ff275fee39fb04ebd0857f5ba
DIFF: https://github.com/llvm/llvm-project/commit/a7a4bb691c1da37ff275fee39fb04ebd0857f5ba.diff
LOG: [mlir][openacc][NFC] Fix verifier message
Reviewed By: vzakhari, jeanPerier
Differential Revision: https://reviews.llvm.org/D151382
Added:
Modified:
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
index 714bf26c67723..15be4d51f5388 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -528,9 +528,9 @@ checkSymOperandList(Operation *op, std::optional<mlir::ArrayAttr> attributes,
<< 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();
More information about the Mlir-commits
mailing list