From e1f62eca2d73f0a874a84202539578425ebd7b22 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 22 May 2014 20:19:46 +0000 Subject: [PATCH] Update the code according to the changes in r209468. llvm-svn: 209470 --- clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp index 5a031e2..a61b8fc 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp @@ -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()); } -- 2.7.4