Update the code according to the changes in r209468.
authorAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 20:19:46 +0000 (20:19 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 20:19:46 +0000 (20:19 +0000)
llvm-svn: 209470

clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp

index 5a031e2..a61b8fc 100644 (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());
 }