Simplify creation of a couple ArrayRefs by using None and makeArrayRef.
llvm-svn: 216529
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user