Update the code according to the changes in r209468.

llvm-svn: 209470
This commit is contained in:
Alexander Kornienko 2014-05-22 20:19:46 +00:00
parent 8a0bc44b71
commit e1f62eca2d
1 changed files with 2 additions and 4 deletions

View File

@ -258,10 +258,8 @@ void ClangTidyDiagnosticConsumer::HandleDiagnostic(
SourceManager *Sources = nullptr;
if (Info.hasSourceManager())
Sources = &Info.getSourceManager();
Converter.emitDiagnostic(
Info.getLocation(), DiagLevel, Message, Info.getRanges(),
llvm::makeArrayRef(Info.getFixItHints(), Info.getNumFixItHints()),
Sources);
Converter.emitDiagnostic(Info.getLocation(), DiagLevel, Message,
Info.getRanges(), Info.getFixItHints(), Sources);
checkFilters(Info.getLocation());
}