diff options
author | Fangrui Song <maskray@google.com> | 2018-09-26 22:16:28 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-09-26 22:16:28 +0000 |
commit | 55fab260ca1c4b71dccf59b80ed8eb24d619125e (patch) | |
tree | dd799efb2c78796a6b75169c6b06bc2a66bdd147 /clang/lib/CodeGen/CGVTables.cpp | |
parent | dbaeec6892b98454e3a736050bbd5a3ebf3cac7d (diff) | |
download | llvm-55fab260ca1c4b71dccf59b80ed8eb24d619125e.zip llvm-55fab260ca1c4b71dccf59b80ed8eb24d619125e.tar.gz llvm-55fab260ca1c4b71dccf59b80ed8eb24d619125e.tar.bz2 |
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/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index df20b9b..e29a035 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -1022,8 +1022,8 @@ void CodeGenModule::EmitVTableTypeMetadata(llvm::GlobalVariable *VTable, AP.second.AddressPointIndex)); // Sort the address points for determinism. - llvm::sort(AddressPoints.begin(), AddressPoints.end(), - [this](const AddressPoint &AP1, const AddressPoint &AP2) { + llvm::sort(AddressPoints, [this](const AddressPoint &AP1, + const AddressPoint &AP2) { if (&AP1 == &AP2) return false; |