[Mlir-commits] [mlir] [MLIR] Fix LocationSnapshot: Use provided flags (PR #96535)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 24 11:55:05 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core

@llvm/pr-subscribers-mlir

Author: Ryan Thomas Lynch (emosy)

<details>
<summary>Changes</summary>

The LocationSnapshot pass does not use the provided OpPrintingFlags passed in. Small one-line fix for that.

---
Full diff: https://github.com/llvm/llvm-project/pull/96535.diff


1 Files Affected:

- (modified) mlir/lib/Transforms/LocationSnapshot.cpp (+1-1) 


``````````diff
diff --git a/mlir/lib/Transforms/LocationSnapshot.cpp b/mlir/lib/Transforms/LocationSnapshot.cpp
index b85850acda91b..b8f3817db9db6 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();
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/96535


More information about the Mlir-commits mailing list