Author: omtcyfz
Date: Thu Aug 30 06:30:34 2018
New Revision: 341066

URL: http://llvm.org/viewvc/llvm-project?rev=341066&view=rev
Log:
[clangd] Remove UB introduced in rL341057

Modified:
    clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp

Modified: clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp?rev=341066&r1=341065&r2=341066&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp Thu Aug 30 06:30:34 
2018
@@ -193,7 +193,6 @@ public:
   OrIterator(std::vector<std::unique_ptr<Iterator>> AllChildren)
       : Children(std::move(AllChildren)) {
     assert(Children.size() > 0 && "Or Iterator must have at least one child.");
-    std::sort(begin(Children), end(Children));
   }
 
   /// Returns true if all children are exhausted.


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to