OSDN Git Service

ADT: Avoid using std::equal in ArrayRef::equals
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 16:36:21 +0000 (16:36 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 16:36:21 +0000 (16:36 +0000)
commit8c20a93bac4f9631d180ff9ec5b562ed2673d78c
treeff86b3e0e988476c797823054946748682297f15
parent93710f07f02b3961556d2344e1baab1f53e4b45e
ADT: Avoid using std::equal in ArrayRef::equals

MSVC's STL has a bug in `std::equal()`: it asserts on nullptr iterators,
causing a block revert in r215981.  This works around that by re-writing
`ArrayRef::equals()` to do the work itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215986 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ArrayRef.h