summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 15:42:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 15:42:48 +0000
commit5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0 (patch)
treee21f08c53cd43480f8dd9ff8453c2c6c0a0e7a90 /clang/tools
parent6b841f18d37e8cdbefc51520b83d7026b7b6727d (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud