[Mlir-commits] [mlir] 61ba0b2 - [mlir][transform] Improve error message when file not found.
Ingo Müller
llvmlistbot at llvm.org
Fri Sep 29 07:08:02 PDT 2023
Author: Ingo Müller
Date: 2023-09-29T14:07:57Z
New Revision: 61ba0b2815eef2585b86c4c5e4d80617319a4bde
URL: https://github.com/llvm/llvm-project/commit/61ba0b2815eef2585b86c4c5e4d80617319a4bde
DIFF: https://github.com/llvm/llvm-project/commit/61ba0b2815eef2585b86c4c5e4d80617319a4bde.diff
LOG: [mlir][transform] Improve error message when file not found.
Added:
Modified:
mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
index d5c65b23e3a2134..b74e14d377c036f 100644
--- a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
@@ -68,7 +68,7 @@ parseTransformModuleFromFile(MLIRContext *context,
if (!memoryBuffer) {
return emitError(FileLineColLoc::get(
StringAttr::get(context, transformFileName), 0, 0))
- << "failed to parse transform file";
+ << "failed to open transform file: " << errorMessage;
}
// Tell sourceMgr about this buffer, the parser will pick it up.
llvm::SourceMgr sourceMgr;
More information about the Mlir-commits
mailing list