[Mlir-commits] [mlir] [mlir] Fix bug that prevents application of PrintingFlags in Location (PR #119373)

Michael Jungmair llvmlistbot at llvm.org
Tue Dec 10 05:03:10 PST 2024


https://github.com/jungmair created https://github.com/llvm/llvm-project/pull/119373

The current implementation of LocationSnapshotPass takes an OpPrintingFlags argument and stores it as member, but does not use it for printing. S

>From 2a1a90722c9b8f330d73b844f96d723909f6073f Mon Sep 17 00:00:00 2001
From: Michael Jungmair <michael.jungmair at cs.tum.edu>
Date: Tue, 10 Dec 2024 13:58:38 +0100
Subject: [PATCH] [mlir] Fix bug that prevents application of PrintingFlags in
 LocationSnapshotPass

---
 mlir/lib/Transforms/LocationSnapshot.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/lib/Transforms/LocationSnapshot.cpp b/mlir/lib/Transforms/LocationSnapshot.cpp
index b85850acda91bd..b8f3817db9db6e 100644
--- a/mlir/lib/Transforms/LocationSnapshot.cpp
+++ b/mlir/lib/Transforms/LocationSnapshot.cpp
@@ -140,7 +140,7 @@ struct LocationSnapshotPass
 
   void runOnOperation() override {
     Operation *op = getOperation();
-    if (failed(generateLocationsFromIR(fileName, op, OpPrintingFlags(), tag)))
+    if (failed(generateLocationsFromIR(fileName, op, flags, tag)))
       return signalPassFailure();
   }
 



More information about the Mlir-commits mailing list