Author: jonastoth Date: Tue Oct 9 06:24:50 2018 New Revision: 344044 URL: http://llvm.org/viewvc/llvm-project?rev=344044&view=rev Log: [clangd] fix miscompiling lower_bound call
Modified: clang-tools-extra/trunk/clangd/index/Index.cpp Modified: clang-tools-extra/trunk/clangd/index/Index.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.cpp?rev=344044&r1=344043&r2=344044&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Index.cpp (original) +++ clang-tools-extra/trunk/clangd/index/Index.cpp Tue Oct 9 06:24:50 2018 @@ -84,8 +84,9 @@ float quality(const Symbol &S) { } SymbolSlab::const_iterator SymbolSlab::find(const SymbolID &ID) const { - auto It = llvm::lower_bound( - Symbols, ID, [](const Symbol &S, const SymbolID &I) { return S.ID < I; }); + auto It = std::lower_bound( + Symbols.begin(), Symbols.end(), ID, + [](const Symbol &S, const SymbolID &I) { return S.ID < I; }); if (It != Symbols.end() && It->ID == ID) return It; return Symbols.end(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits