[Mlir-commits] [mlir] [MLIR] Fix LocationSnapshot: Use provided flags (PR #96535)
Ryan Thomas Lynch
llvmlistbot at llvm.org
Mon Jun 24 11:54:35 PDT 2024
https://github.com/emosy created https://github.com/llvm/llvm-project/pull/96535
The LocationSnapshot pass does not use the provided OpPrintingFlags passed in. Small one-line fix for that.
>From 1df5ae34f720747654b28232b2ef6c8f7a3ac009 Mon Sep 17 00:00:00 2001
From: Ryan Thomas Lynch <rlynch34 at gatech.edu>
Date: Mon, 24 Jun 2024 11:53:59 -0700
Subject: [PATCH] [MLIR] Fix LocationSnapshot: Use provided flags
The LocationSnapshot pass does not use the provided OpPrintingFlags passed in.
Small one-line fix for that.
---
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 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();
}
More information about the Mlir-commits
mailing list