Skip to content

Commit 91ef371

Browse files
authored
[MLIR] Update operator<< in objects of DataFlowFramework.h (llvm#127586)
1 parent d64f177 commit 91ef371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Analysis/DataFlowFramework.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct ProgramPoint : public StorageUniquer::BaseStorage {
146146
Operation *op = nullptr;
147147
};
148148

149-
inline raw_ostream &operator<<(raw_ostream &os, ProgramPoint point) {
149+
inline raw_ostream &operator<<(raw_ostream &os, const ProgramPoint &point) {
150150
point.print(os);
151151
return os;
152152
}
@@ -662,7 +662,7 @@ inline raw_ostream &operator<<(raw_ostream &os, const AnalysisState &state) {
662662
return os;
663663
}
664664

665-
inline raw_ostream &operator<<(raw_ostream &os, LatticeAnchor anchor) {
665+
inline raw_ostream &operator<<(raw_ostream &os, const LatticeAnchor &anchor) {
666666
anchor.print(os);
667667
return os;
668668
}

0 commit comments

Comments
 (0)