From 59c2ada25d066d4d8e70686313be9030dbb8ff0f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 6 Dec 2015 05:07:12 +0000 Subject: Use llvm::make_range to reduce mentions of iterator type. NFC llvm-svn: 254870 --- clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 663518f763f..11be764633c 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2712,8 +2712,7 @@ llvm::iterator_range BugReport::getRanges() { if (Ranges.size() == 1 && !Ranges.begin()->isValid()) return llvm::make_range(ranges_iterator(), ranges_iterator()); - return llvm::iterator_range(Ranges.begin(), - Ranges.end()); + return llvm::make_range(Ranges.begin(), Ranges.end()); } PathDiagnosticLocation BugReport::getLocation(const SourceManager &SM) const { -- cgit v1.2.3