diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-12-06 05:07:12 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-12-06 05:07:12 +0000 |
commit | 59c2ada25d066d4d8e70686313be9030dbb8ff0f (patch) | |
tree | 661ceb3ef8e9b6646882f87167cffb70cd2d24d7 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 9fe86d90ab8952af917922d0669ab11eae7149ea (diff) | |
download | bcm5719-llvm-59c2ada25d066d4d8e70686313be9030dbb8ff0f.tar.gz bcm5719-llvm-59c2ada25d066d4d8e70686313be9030dbb8ff0f.zip |
Use llvm::make_range to reduce mentions of iterator type. NFC
llvm-svn: 254870
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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::ranges_iterator> BugReport::getRanges() { if (Ranges.size() == 1 && !Ranges.begin()->isValid()) return llvm::make_range(ranges_iterator(), ranges_iterator()); - return llvm::iterator_range<BugReport::ranges_iterator>(Ranges.begin(), - Ranges.end()); + return llvm::make_range(Ranges.begin(), Ranges.end()); } PathDiagnosticLocation BugReport::getLocation(const SourceManager &SM) const { |