[PATCH] D52287: [unittests] Do not use llvm::sort in googlemock

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 21:29:02 PDT 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342612: [unittests] Do not use llvm::sort in googlemock (authored by dberris, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D52287?vs=166213&id=166221#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D52287

Files:
  llvm/trunk/utils/unittest/googlemock/include/gmock/gmock-matchers.h


Index: llvm/trunk/utils/unittest/googlemock/include/gmock/gmock-matchers.h
===================================================================
--- llvm/trunk/utils/unittest/googlemock/include/gmock/gmock-matchers.h
+++ llvm/trunk/utils/unittest/googlemock/include/gmock/gmock-matchers.h
@@ -2654,7 +2654,7 @@
       LhsStlContainerReference lhs_stl_container = LhsView::ConstReference(lhs);
       ::std::vector<LhsValue> sorted_container(lhs_stl_container.begin(),
                                                lhs_stl_container.end());
-      ::llvm::sort(
+      ::std::sort(
            sorted_container.begin(), sorted_container.end(), comparator_);
 
       if (!listener->IsInterested()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52287.166221.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180920/146df292/attachment.bin>


More information about the llvm-commits mailing list