diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-12 15:42:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-12 15:42:48 +0000 |
commit | 5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0 (patch) | |
tree | e21f08c53cd43480f8dd9ff8453c2c6c0a0e7a90 /clang/tools | |
parent | 6b841f18d37e8cdbefc51520b83d7026b7b6727d (diff) | |
download | bcm5719-llvm-5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0.tar.gz bcm5719-llvm-5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0.zip |
Replace llvm::array_endof with C++11's std::end.
No functionality change.
llvm-svn: 206111
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/diagtool/DiagnosticNames.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/diagtool/DiagnosticNames.cpp b/clang/tools/diagtool/DiagnosticNames.cpp index 155c62d80b2..f5df05905eb 100644 --- a/clang/tools/diagtool/DiagnosticNames.cpp +++ b/clang/tools/diagtool/DiagnosticNames.cpp @@ -53,8 +53,8 @@ const DiagnosticRecord &diagtool::getDiagnosticForID(short DiagID) { DiagnosticRecord Key = {0, DiagID, 0}; const DiagnosticRecord *Result = - std::lower_bound(BuiltinDiagnosticsByID, - llvm::array_endof(BuiltinDiagnosticsByID), + std::lower_bound(std::begin(BuiltinDiagnosticsByID), + std::end(BuiltinDiagnosticsByID), Key, orderByID); assert(Result && "diagnostic not found; table may be out of date"); return *Result; |