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

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 06:05:13 PDT 2019


Author: rksimon
Date: Tue Sep  3 06:05:13 2019
New Revision: 370750

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

Modified:
    clang-tools-extra/trunk/clangd/FindTarget.cpp

Modified: clang-tools-extra/trunk/clangd/FindTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FindTarget.cpp?rev=370750&r1=370749&r2=370750&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/FindTarget.cpp (original)
+++ clang-tools-extra/trunk/clangd/FindTarget.cpp Tue Sep  3 06:05:13 2019
@@ -365,6 +365,7 @@ llvm::raw_ostream &operator<<(llvm::raw_
     REL_CASE(TemplatePattern);
 #undef REL_CASE
   };
+  llvm_unreachable("Unhandled DeclRelation enum");
 }
 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, DeclRelationSet RS) {
   const char *Sep = "";




More information about the cfe-commits mailing list