From: Sam McCall Date: Tue, 15 Dec 2020 13:17:44 +0000 (+0100) Subject: [clangd] Oops, fix code in #ifdef WIN32 X-Git-Tag: llvmorg-13-init~3364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5186eda3269333b2fb38800e9ded2a27ae87f99b;p=platform%2Fupstream%2Fllvm.git [clangd] Oops, fix code in #ifdef WIN32 --- diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp index bad9c35..add0eec 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