summaryrefslogtreecommitdiffstats
path: root/clang-query
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-27 06:29:07 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-27 06:29:07 +0000
commit8deb1ac5d150dea861d13b342bd7c254ef575617 (patch)
tree1a714650f91452c9060093ad128127fa17736bcd /clang-query
parent9d023fe0817e612eda7912eacbc715502b876e59 (diff)
Simplify creation of a couple ArrayRefs by using None and makeArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@216529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query')
-rw-r--r--clang-query/Query.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp
index ef29e6b4..0a63ade0 100644
--- a/clang-query/Query.cpp
+++ b/clang-query/Query.cpp
@@ -92,8 +92,8 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
TD.emitDiagnostic(
R.getBegin(), DiagnosticsEngine::Note,
"\"" + BI->first + "\" binds here",
- ArrayRef<CharSourceRange>(CharSourceRange::getTokenRange(R)),
- ArrayRef<FixItHint>(), &AST->getSourceManager());
+ llvm::makeArrayRef(CharSourceRange::getTokenRange(R)),
+ None, &AST->getSourceManager());
}
break;
}