We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a824318 commit 59984d4Copy full SHA for 59984d4
mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h
@@ -101,15 +101,15 @@ class Polynomial {
101
102
unsigned getDegree() const;
103
104
- friend ::llvm::hash_code hash_value(Polynomial arg);
+ friend ::llvm::hash_code hash_value(const Polynomial &arg);
105
106
private:
107
// The monomial terms for this polynomial.
108
SmallVector<Monomial> terms;
109
};
110
111
// Make Polynomial hashable.
112
-inline ::llvm::hash_code hash_value(Polynomial arg) {
+inline ::llvm::hash_code hash_value(const Polynomial &arg) {
113
return ::llvm::hash_combine_range(arg.terms.begin(), arg.terms.end());
114
}
115
0 commit comments