[clang-tools-extra] r344844 - Fix MSVC "not all control paths return a value" warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 20 06:18:49 PDT 2018


Author: rksimon
Date: Sat Oct 20 06:18:49 2018
New Revision: 344844

URL: http://llvm.org/viewvc/llvm-project?rev=344844&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.

Modified:
    clang-tools-extra/trunk/clangd/index/FileIndex.cpp

Modified: clang-tools-extra/trunk/clangd/index/FileIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/FileIndex.cpp?rev=344844&r1=344843&r2=344844&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/FileIndex.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/FileIndex.cpp Sat Oct 20 06:18:49 2018
@@ -160,6 +160,7 @@ FileSymbols::buildIndex(IndexType Type,
                         std::move(RefsStorage)),
         StorageSize, std::move(URISchemes));
   }
+  llvm_unreachable("Unknown clangd::IndexType");
 }
 
 FileIndex::FileIndex(std::vector<std::string> URISchemes, bool UseDex)




More information about the cfe-commits mailing list