summaryrefslogtreecommitdiffstats
path: root/tools/diagtool
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
commit37da208cf11c4a57f46416f5c73443cecf813941 (patch)
tree21b2a9faef44db3bf74727fb59397c74bfff98f9 /tools/diagtool
parent7b5a5c5911d79105d736b1eadec906db76e5ccb9 (diff)
Replace llvm::array_endof with C++11's std::end.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/diagtool')
-rw-r--r--tools/diagtool/DiagnosticNames.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/diagtool/DiagnosticNames.cpp b/tools/diagtool/DiagnosticNames.cpp
index 155c62d80b..f5df05905e 100644
--- a/tools/diagtool/DiagnosticNames.cpp
+++ b/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;