File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
llvm/include/llvm/CodeGen/PBQP Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ using PBQPNum = float;
25
25
26
26
// / PBQP Vector class.
27
27
class Vector {
28
- friend hash_code hash_value (const Vector &);
29
-
30
28
public:
31
29
// / Construct a PBQP vector of the given size.
32
30
explicit Vector (unsigned Length) : Data(Length) {}
@@ -96,7 +94,7 @@ class Vector {
96
94
inline hash_code hash_value (const Vector &V) {
97
95
const unsigned *VBegin = reinterpret_cast <const unsigned *>(V.begin ());
98
96
const unsigned *VEnd = reinterpret_cast <const unsigned *>(V.end ());
99
- return hash_combine (V.Data . size (), hash_combine_range (VBegin, VEnd));
97
+ return hash_combine (V.getLength (), hash_combine_range (VBegin, VEnd));
100
98
}
101
99
102
100
// / Output a textual representation of the given vector on the given
You can’t perform that action at this time.
0 commit comments