diff options
author | Fangrui Song <maskray@google.com> | 2019-04-24 14:43:05 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-24 14:43:05 +0000 |
commit | 899d13926df4b90483174ed3b710b9f936379690 (patch) | |
tree | 1c376a52d85fd48d113d085ad497f6fc9cc2aeba /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 475585655db8aa8da5d5bb7421687151464a8809 (diff) | |
download | bcm5719-llvm-899d13926df4b90483174ed3b710b9f936379690.tar.gz bcm5719-llvm-899d13926df4b90483174ed3b710b9f936379690.zip |
Use llvm::stable_sort
llvm-svn: 359098
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 427eabc36d0..e51963aa9af 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2574,10 +2574,9 @@ void CodeGenModule::emitMultiVersionFunctions() { ResolverFunc->setComdat( getModule().getOrInsertComdat(ResolverFunc->getName())); - std::stable_sort( - Options.begin(), Options.end(), - [&TI](const CodeGenFunction::MultiVersionResolverOption &LHS, - const CodeGenFunction::MultiVersionResolverOption &RHS) { + llvm::stable_sort( + Options, [&TI](const CodeGenFunction::MultiVersionResolverOption &LHS, + const CodeGenFunction::MultiVersionResolverOption &RHS) { return TargetMVPriority(TI, LHS) > TargetMVPriority(TI, RHS); }); CodeGenFunction CGF(*this); |