[Mlir-commits] [mlir] [mlir][transform] Improve error when merging of modules fails. (PR #69331)
Ingo Müller
llvmlistbot at llvm.org
Tue Oct 17 06:38:22 PDT 2023
https://github.com/ingomueller-net created https://github.com/llvm/llvm-project/pull/69331
This resolved #69112.
>From a3b77a4914bbd0681db123ad64c57cbcc17c4d51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ingo=20M=C3=BCller?= <ingomueller at google.com>
Date: Tue, 17 Oct 2023 13:36:09 +0000
Subject: [PATCH] [mlir][transform] Improve error when merging of modules
fails.
This resolved #69112.
---
.../Transform/Transforms/TransformInterpreterUtils.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp
index 41feffffaf97b3f..e0bde020daf7c6f 100644
--- a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp
@@ -176,8 +176,8 @@ LogicalResult transform::detail::assembleTransformLibraryFromPaths(
for (OwningOpRef<ModuleOp> &parsedLibrary : parsedLibraries) {
if (failed(transform::detail::mergeSymbolsInto(
mergedParsedLibraries.get(), std::move(parsedLibrary))))
- return mergedParsedLibraries->emitError()
- << "failed to verify merged transform module";
+ return parsedLibrary->emitError()
+ << "failed to merge symbols into shared library module";
}
}
More information about the Mlir-commits
mailing list