Silence some "control reaches end of non-void function" warnings with gcc
authorPavel Labath <pavel@labath.sk>
Fri, 31 Aug 2018 05:18:11 +0000 (05:18 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 31 Aug 2018 05:18:11 +0000 (05:18 +0000)
llvm-svn: 341163

lldb/source/Core/Mangled.cpp
lldb/source/Core/RichManglingContext.cpp

index c01df6c..536c812 100644 (file)
@@ -354,6 +354,7 @@ bool Mangled::DemangleWithRichManglingInfo(
     }
   }
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 //----------------------------------------------------------------------
index 0ff602f..f5fbe38 100644 (file)
@@ -74,6 +74,7 @@ bool RichManglingContext::IsCtorOrDtor() const {
   case None:
     return false;
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 bool RichManglingContext::IsFunction() const {
@@ -86,6 +87,7 @@ bool RichManglingContext::IsFunction() const {
   case None:
     return false;
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 void RichManglingContext::processIPDStrResult(char *ipd_res, size_t res_size) {