From: Benjamin Kramer Date: Sun, 1 Mar 2015 23:56:19 +0000 (+0000) Subject: Fix a really bad typo in my last commit. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bd06347b1a32e5fdcca099594ccfc9d2e36ee7d0;p=oota-llvm.git Fix a really bad typo in my last commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230922 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ArrayRef.h b/include/llvm/ADT/ArrayRef.h index e973054daef..f7b055e3a06 100644 --- a/include/llvm/ADT/ArrayRef.h +++ b/include/llvm/ADT/ArrayRef.h @@ -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()); }