Simplify creation of a couple ArrayRefs by using None and makeArrayRef.

llvm-svn: 216529
This commit is contained in:
Craig Topper
2014-08-27 06:29:07 +00:00
parent 5fc8fc2d31
commit 2f020e5497

View File

@@ -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;
}