[clang-tools-extra] b2aa470 - [clangd] detectClangPath() - remove (dead) return. NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 20 04:48:30 PDT 2021


Author: Simon Pilgrim
Date: 2021-08-20T12:41:38+01:00
New Revision: b2aa470faeb7aaedfa63cb192a710fbe086f15c1

URL: https://github.com/llvm/llvm-project/commit/b2aa470faeb7aaedfa63cb192a710fbe086f15c1
DIFF: https://github.com/llvm/llvm-project/commit/b2aa470faeb7aaedfa63cb192a710fbe086f15c1.diff

LOG: [clangd] detectClangPath() - remove (dead) return. NFC.

Added: 
    

Modified: 
    clang-tools-extra/clangd/CompileCommands.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/CompileCommands.cpp b/clang-tools-extra/clangd/CompileCommands.cpp
index 57933169f9119..f9e283beca64c 100644
--- a/clang-tools-extra/clangd/CompileCommands.cpp
+++ b/clang-tools-extra/clangd/CompileCommands.cpp
@@ -127,7 +127,6 @@ const llvm::Optional<std::string> detectSysroot() {
   if (::getenv("SDKROOT"))
     return llvm::None;
   return queryXcrun({"xcrun", "--show-sdk-path"});
-  return llvm::None;
 }
 
 std::string detectStandardResourceDir() {


        


More information about the cfe-commits mailing list