[Mlir-commits] [mlir] [MLIR] Update `operator<<` in objects of DataFlowFramework.h (PR #127586)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 18 00:02:20 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Hyunsung Lee (ita9naiwa)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) mlir/include/mlir/Analysis/DataFlowFramework.h (+2-2) 


``````````diff
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;
 }

``````````

</details>


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


More information about the Mlir-commits mailing list