Skip to content

Commit

Permalink
Simplify creation of a couple ArrayRefs by using None and makeArrayRef.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@216529 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
topperc committed Aug 27, 2014
1 parent 9d023fe commit 8deb1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang-query/Query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8deb1ac

Please sign in to comment.