[Lldb-commits] [PATCH] D119737: [lldb] Add llvm_unreachable in RichManglingContext

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 18 08:38:19 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf20f9f5a32c0: [lldb] Add llvm_unreachable in RichManglingContext (authored by kastiglione).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119737/new/

https://reviews.llvm.org/D119737

Files:
  lldb/source/Core/RichManglingContext.cpp


Index: lldb/source/Core/RichManglingContext.cpp
===================================================================
--- lldb/source/Core/RichManglingContext.cpp
+++ lldb/source/Core/RichManglingContext.cpp
@@ -123,6 +123,7 @@
   case None:
     return {};
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 llvm::StringRef RichManglingContext::ParseFunctionDeclContextName() {
@@ -139,6 +140,7 @@
   case None:
     return {};
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 llvm::StringRef RichManglingContext::ParseFullName() {
@@ -156,4 +158,5 @@
   case None:
     return {};
   }
+  llvm_unreachable("Fully covered switch above!");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119737.409946.patch
Type: text/x-patch
Size: 667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220218/cbcf3fdd/attachment-0001.bin>


More information about the lldb-commits mailing list