Author: Sam McCall Date: 2020-12-15T14:17:54+01:00 New Revision: 5186eda3269333b2fb38800e9ded2a27ae87f99b
URL: https://github.com/llvm/llvm-project/commit/5186eda3269333b2fb38800e9ded2a27ae87f99b DIFF: https://github.com/llvm/llvm-project/commit/5186eda3269333b2fb38800e9ded2a27ae87f99b.diff LOG: [clangd] Oops, fix code in #ifdef WIN32 Added: Modified: clang-tools-extra/clangd/GlobalCompilationDatabase.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp index bad9c359798e..add0eec4a2c8 100644 --- a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp +++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp @@ -37,7 +37,7 @@ PathRef absoluteParent(PathRef Path) { #if defined(_WIN32) // llvm::sys says "C:\" is absolute, and its parent is "C:" which is relative. // This unhelpful behavior seems to have been inherited from boost. - if (llvm::sys::path::relative_path(Path)).empty(); { + if (llvm::sys::path::relative_path(Path).empty()) { return PathRef(); } #endif _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits