[Mlir-commits] [mlir] [mlir][transform] Improve error message of tracking listener. (PR #66987)
Matthias Springer
llvmlistbot at llvm.org
Mon Sep 25 09:09:42 PDT 2023
Ingo =?utf-8?q?Müller?= <ingomueller at google.com>,
Ingo =?utf-8?q?Müller?= <ingomueller at google.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/66987/mlir at github.com>
================
@@ -352,8 +352,17 @@ static LogicalResult testTrackingListenerReplacements(Operation *rootOp) {
transform::TransformState transformState =
transform::detail::makeTransformStateForTesting(/*region=*/nullptr,
/*payloadRoot=*/nullptr);
- DummyTrackingListener listener(transformState,
- transform::TransformOpInterface());
+ MLIRContext *context = rootOp->getContext();
+ OpBuilder builder(context);
----------------
matthias-springer wrote:
This OpBuilder has no insertion point. That's likely what caused the leak.
https://github.com/llvm/llvm-project/pull/66987
More information about the Mlir-commits
mailing list