Fix a really bad typo in my last commit.

llvm-svn: 230922
This commit is contained in:
Benjamin Kramer 2015-03-01 23:56:19 +00:00
parent 876bd51486
commit 201a48471b
1 changed files with 3 additions and 1 deletions

View File

@ -135,8 +135,10 @@ namespace llvm {
/// equals - Check for element-wise equality.
bool equals(ArrayRef RHS) const {
if (Length != RHS.Length || Length == 0)
if (Length != RHS.Length)
return false;
if (Length == 0)
return true;
return std::equal(begin(), end(), RHS.begin());
}