summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-26 22:16:28 +0000
committerFangrui Song <maskray@google.com>2018-09-26 22:16:28 +0000
commit55fab260ca1c4b71dccf59b80ed8eb24d619125e (patch)
treedd799efb2c78796a6b75169c6b06bc2a66bdd147 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp
parentdbaeec6892b98454e3a736050bbd5a3ebf3cac7d (diff)
downloadbcm5719-llvm-55fab260ca1c4b71dccf59b80ed8eb24d619125e.tar.gz
bcm5719-llvm-55fab260ca1c4b71dccf59b80ed8eb24d619125e.zip
llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...)
Summary: The convenience wrapper in STLExtras is available since rL342102. Reviewers: rsmith, #clang, dblaikie Reviewed By: rsmith, #clang Subscribers: mgrang, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D52576 llvm-svn: 343147
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 048c8aa2834..bc4600c827f 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -2386,8 +2386,7 @@ TrimmedGraph::TrimmedGraph(const ExplodedGraph *OriginalGraph,
}
// Sort the error paths from longest to shortest.
- llvm::sort(ReportNodes.begin(), ReportNodes.end(),
- PriorityCompare<true>(PriorityMap));
+ llvm::sort(ReportNodes, PriorityCompare<true>(PriorityMap));
}
bool TrimmedGraph::popNextReportGraph(ReportGraph &GraphWrapper) {
OpenPOWER on IntegriCloud