From 962a247aebba39bc8f2d6aa901ed512f5c09dc72 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 29 Sep 2020 20:06:47 +0200 Subject: [PATCH] [clangd] Fix assertion in remote-index marshalling convert_to_slash is a no-op on posix style. --- clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp b/clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp index 8392509..31ce4a4 100644 --- a/clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp +++ b/clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp @@ -296,8 +296,7 @@ llvm::Expected Marshaller::toProtobuf(const clangd::SymbolID &Subject, llvm::Expected Marshaller::relativePathToURI(llvm::StringRef RelativePath) { assert(LocalIndexRoot); - assert(RelativePath == llvm::sys::path::convert_to_slash( - RelativePath, llvm::sys::path::Style::posix)); + assert(RelativePath == llvm::sys::path::convert_to_slash(RelativePath)); if (RelativePath.empty()) return error("Empty relative path."); if (llvm::sys::path::is_absolute(RelativePath)) -- 2.7.4