Skip to content

Commit 59984d4

Browse files
committed
const hash_value arg
1 parent a824318 commit 59984d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ class Polynomial {
101101

102102
unsigned getDegree() const;
103103

104-
friend ::llvm::hash_code hash_value(Polynomial arg);
104+
friend ::llvm::hash_code hash_value(const Polynomial &arg);
105105

106106
private:
107107
// The monomial terms for this polynomial.
108108
SmallVector<Monomial> terms;
109109
};
110110

111111
// Make Polynomial hashable.
112-
inline ::llvm::hash_code hash_value(Polynomial arg) {
112+
inline ::llvm::hash_code hash_value(const Polynomial &arg) {
113113
return ::llvm::hash_combine_range(arg.terms.begin(), arg.terms.end());
114114
}
115115

0 commit comments

Comments
 (0)