summaryrefslogtreecommitdiffstats
path: root/llvm/lib/XRay
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-30 22:31:29 +0000
committerFangrui Song <maskray@google.com>2018-09-30 22:31:29 +0000
commit3507c6e88479866e6b057ecbfd74b8d72b8275c3 (patch)
treecd17d63ff2fc849c31c5e17a23d7a3f630e0690a /llvm/lib/XRay
parent1d38c13f6e22889624df47b74bf058cf1864b392 (diff)
downloadbcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.tar.gz
bcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.zip
Use the container form llvm::sort(C, ...)
There are a few leftovers in rL343163 which span two lines. This commit changes these llvm::sort(C.begin(), C.end, ...) to llvm::sort(C, ...) llvm-svn: 343426
Diffstat (limited to 'llvm/lib/XRay')
-rw-r--r--llvm/lib/XRay/Trace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/XRay/Trace.cpp b/llvm/lib/XRay/Trace.cpp
index 15cafa51bec..1d7c723864d 100644
--- a/llvm/lib/XRay/Trace.cpp
+++ b/llvm/lib/XRay/Trace.cpp
@@ -311,7 +311,7 @@ Error loadFDRLog(StringRef Data, bool IsLittleEndian,
for (auto &PTB : Index) {
auto &Blocks = PTB.second;
llvm::sort(
- Blocks.begin(), Blocks.end(),
+ Blocks,
[](const BlockIndexer::Block &L, const BlockIndexer::Block &R) {
return (L.WallclockTime->seconds() < R.WallclockTime->seconds() &&
L.WallclockTime->nanos() < R.WallclockTime->nanos());
OpenPOWER on IntegriCloud