Summary: This fixes failure in Misc/diag-template-diffing.cpp uncovered by D39245.
Reviewers: rjmccall, rsmith
Reviewed By: rjmccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D39944
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318121
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
- std::sort(Cands.begin(), Cands.end(),
+ std::stable_sort(Cands.begin(), Cands.end(),
CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size(), Kind));
bool ReportedAmbiguousConversions = false;