[PATCH] D39944: [Sema] Stable sort OverloadCandidates to remove non-deterministic ordering

Mandeep Singh Grang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 16:22:51 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL318121: [Sema] Stable sort OverloadCandidates to remove non-deterministic ordering (authored by mgrang).

Changed prior to commit:
  https://reviews.llvm.org/D39944?vs=122598&id=122744#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39944

Files:
  cfe/trunk/lib/Sema/SemaOverload.cpp


Index: cfe/trunk/lib/Sema/SemaOverload.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp
+++ cfe/trunk/lib/Sema/SemaOverload.cpp
@@ -10516,7 +10516,7 @@
     }
   }
 
-  std::sort(Cands.begin(), Cands.end(),
+  std::stable_sort(Cands.begin(), Cands.end(),
             CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size(), Kind));
 
   bool ReportedAmbiguousConversions = false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39944.122744.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171114/bcc3dcd5/attachment.bin>


More information about the cfe-commits mailing list