Summary:
This fixes failure in tools/llvm-xray/X86/graph-zero-latency-calls.yaml
uncovered by D39245.
Reviewers: dberris
Reviewed By: dberris
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D39943
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318163
91177308-0d34-0410-b5e6-
96231b3b80d8
}
if (Sort)
- std::sort(T.Records.begin(), T.Records.end(),
+ std::stable_sort(T.Records.begin(), T.Records.end(),
[&](const XRayRecord &L, const XRayRecord &R) {
return L.TSC < R.TSC;
});