diff options
Diffstat (limited to 'clang/lib/Analysis/CloneDetection.cpp')
| -rw-r--r-- | clang/lib/Analysis/CloneDetection.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Analysis/CloneDetection.cpp b/clang/lib/Analysis/CloneDetection.cpp index e62731050b6..74328e8ae67 100644 --- a/clang/lib/Analysis/CloneDetection.cpp +++ b/clang/lib/Analysis/CloneDetection.cpp @@ -367,11 +367,7 @@ void RecursiveCloneTypeIIHashConstraint::constrain( } // Sort hash_codes in StmtsByHash. - std::stable_sort(StmtsByHash.begin(), StmtsByHash.end(), - [](std::pair<size_t, StmtSequence> LHS, - std::pair<size_t, StmtSequence> RHS) { - return LHS.first < RHS.first; - }); + llvm::stable_sort(StmtsByHash, llvm::less_first()); // Check for each StmtSequence if its successor has the same hash value. // We don't check the last StmtSequence as it has no successor. |

