Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions llvm/include/llvm/CodeGen/PBQP/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ using PBQPNum = float;

/// PBQP Vector class.
class Vector {
friend hash_code hash_value(const Vector &);

public:
/// Construct a PBQP vector of the given size.
explicit Vector(unsigned Length) : Data(Length) {}
Expand Down Expand Up @@ -96,7 +94,7 @@ class Vector {
inline hash_code hash_value(const Vector &V) {
const unsigned *VBegin = reinterpret_cast<const unsigned *>(V.begin());
const unsigned *VEnd = reinterpret_cast<const unsigned *>(V.end());
return hash_combine(V.Data.size(), hash_combine_range(VBegin, VEnd));
return hash_combine(V.getLength(), hash_combine_range(VBegin, VEnd));
}

/// Output a textual representation of the given vector on the given
Expand Down
Loading