diff options
author | Fangrui Song <maskray@google.com> | 2018-09-30 21:41:11 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-09-30 21:41:11 +0000 |
commit | 1d38c13f6e22889624df47b74bf058cf1864b392 (patch) | |
tree | ec14ba7c7bbc589249302106ae612aa0520351d4 /clang/lib/AST/VTableBuilder.cpp | |
parent | f21083870d1c20b2fd51b08c397ae7da13bd6341 (diff) | |
download | bcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.tar.gz bcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.zip |
Use the container form llvm::sort(C, ...)
There are a few leftovers of rC343147 that are not (\w+)\.begin but in
the form of ([-[:alnum:]>.]+)\.begin or spanning two lines. Change them
to use the container form in this commit. The 12 occurrences have been
inspected manually for safety.
llvm-svn: 343425
Diffstat (limited to 'clang/lib/AST/VTableBuilder.cpp')
-rw-r--r-- | clang/lib/AST/VTableBuilder.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/AST/VTableBuilder.cpp b/clang/lib/AST/VTableBuilder.cpp index 46844daf3b3..81e3c947801 100644 --- a/clang/lib/AST/VTableBuilder.cpp +++ b/clang/lib/AST/VTableBuilder.cpp @@ -2205,13 +2205,12 @@ VTableLayout::VTableLayout(ArrayRef<size_t> VTableIndices, else this->VTableIndices = OwningArrayRef<size_t>(VTableIndices); - llvm::sort(this->VTableThunks.begin(), this->VTableThunks.end(), - [](const VTableLayout::VTableThunkTy &LHS, - const VTableLayout::VTableThunkTy &RHS) { - assert((LHS.first != RHS.first || LHS.second == RHS.second) && - "Different thunks should have unique indices!"); - return LHS.first < RHS.first; - }); + llvm::sort(this->VTableThunks, [](const VTableLayout::VTableThunkTy &LHS, + const VTableLayout::VTableThunkTy &RHS) { + assert((LHS.first != RHS.first || LHS.second == RHS.second) && + "Different thunks should have unique indices!"); + return LHS.first < RHS.first; + }); } VTableLayout::~VTableLayout() { } |