Skip to content

Commit 966c7da

Browse files
j2kunjoker-eph
andauthored
Remove need for post set-listener with RAII
Co-authored-by: Mehdi Amini <joker.eph@gmail.com>
1 parent c91206b commit 966c7da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/Rewrite/PatternApplicator.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ LogicalResult PatternApplicator::matchAndRewrite(
221221
LLVM_DEBUG(llvm::dbgs()
222222
<< "\"" << bestPattern->getDebugName() << "\" result "
223223
<< succeeded(result) << "\n");
224-
#ifndef NDEBUG
225-
rewriter.setListener(oldListener);
226-
delete catalogingListener;
227-
#endif
228224
}
229225

230226
// Process the result of the pattern application.

0 commit comments

Comments
 (0)