[Mlir-commits] [mlir] Update `operator<<` in objects of DataFlowFramework.h (PR #127586)
Hyunsung Lee
llvmlistbot at llvm.org
Tue Feb 18 00:01:50 PST 2025
https://github.com/ita9naiwa created https://github.com/llvm/llvm-project/pull/127586
None
>From c84a1892d8d0048c4ee10b2f7e356edb6fa49c44 Mon Sep 17 00:00:00 2001
From: Hyunsung Lee <ita9naiwa at gmail.com>
Date: Tue, 18 Feb 2025 17:01:02 +0900
Subject: [PATCH] Update DataFlowFramework.h
---
mlir/include/mlir/Analysis/DataFlowFramework.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index a3714c4332fbb..6aa0900d1412a 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -146,7 +146,7 @@ struct ProgramPoint : public StorageUniquer::BaseStorage {
Operation *op = nullptr;
};
-inline raw_ostream &operator<<(raw_ostream &os, ProgramPoint point) {
+inline raw_ostream &operator<<(raw_ostream &os, const ProgramPoint &point) {
point.print(os);
return os;
}
@@ -662,7 +662,7 @@ inline raw_ostream &operator<<(raw_ostream &os, const AnalysisState &state) {
return os;
}
-inline raw_ostream &operator<<(raw_ostream &os, LatticeAnchor anchor) {
+inline raw_ostream &operator<<(raw_ostream &os, const LatticeAnchor &anchor) {
anchor.print(os);
return os;
}
More information about the Mlir-commits
mailing list