Skip to content

Commit 5ba1a1c

Browse files
Address a comment.
1 parent 1a3254f commit 5ba1a1c

File tree

1 file changed

+1
-3
lines changed
  • llvm/include/llvm/CodeGen/PBQP

1 file changed

+1
-3
lines changed

llvm/include/llvm/CodeGen/PBQP/Math.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ class Vector {
5757
/// Comparison operator.
5858
bool operator==(const Vector &V) const {
5959
assert(Length != 0 && Data && "Invalid vector");
60-
if (Length != V.Length)
61-
return false;
62-
return std::equal(begin(), end(), V.begin());
60+
return llvm::equal(*this, V);
6361
}
6462

6563
/// Return the length of the vector

0 commit comments

Comments
 (0)