[clangd] Oops, fix code in #ifdef WIN32
authorSam McCall <sam.mccall@gmail.com>
Tue, 15 Dec 2020 13:17:44 +0000 (14:17 +0100)
committerSam McCall <sam.mccall@gmail.com>
Tue, 15 Dec 2020 13:17:54 +0000 (14:17 +0100)
clang-tools-extra/clangd/GlobalCompilationDatabase.cpp

index bad9c35..add0eec 100644 (file)
@@ -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