kastiglione created this revision.
kastiglione added a reviewer: JDevlieghere.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Add `llvm_unreachable` to prevent warnings/errors in gcc and msvc.
Repository:
rG LLVM Github Monorepo
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!");
}
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!");
}
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits