diff options
author | Pavel Labath <pavel@labath.sk> | 2018-08-31 05:18:11 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2018-08-31 05:18:11 +0000 |
commit | d5fa57eb19609fc23c874f4653738432a8b8ad51 (patch) | |
tree | 5a72e02e9c5f3d0675bf21a504b065fe3d5e48ec | |
parent | 60746d91c15f1ccf80d33e22798edb8505182709 (diff) | |
download | bcm5719-llvm-d5fa57eb19609fc23c874f4653738432a8b8ad51.tar.gz bcm5719-llvm-d5fa57eb19609fc23c874f4653738432a8b8ad51.zip |
Silence some "control reaches end of non-void function" warnings with gcc
llvm-svn: 341163
-rw-r--r-- | lldb/source/Core/Mangled.cpp | 1 | ||||
-rw-r--r-- | lldb/source/Core/RichManglingContext.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/Mangled.cpp b/lldb/source/Core/Mangled.cpp index c01df6cb59c..536c812c332 100644 --- a/lldb/source/Core/Mangled.cpp +++ b/lldb/source/Core/Mangled.cpp @@ -354,6 +354,7 @@ bool Mangled::DemangleWithRichManglingInfo( } } } + llvm_unreachable("Fully covered switch above!"); } //---------------------------------------------------------------------- diff --git a/lldb/source/Core/RichManglingContext.cpp b/lldb/source/Core/RichManglingContext.cpp index 0ff602f7ad1..f5fbe38a49f 100644 --- a/lldb/source/Core/RichManglingContext.cpp +++ b/lldb/source/Core/RichManglingContext.cpp @@ -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) { |