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/CGBlocks.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/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 731735841e5..2a317fc956d 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -671,7 +671,7 @@ static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, // Sort the layout by alignment. We have to use a stable sort here // to get reproducible results. There should probably be an // llvm::array_pod_stable_sort. - std::stable_sort(layout.begin(), layout.end()); + llvm::stable_sort(layout); // Needed for blocks layout info. info.BlockHeaderForcedGapOffset = info.BlockSize; |