aboutsummaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
authorAlexandre Ganea <alex_toresh@yahoo.fr>2024-01-18 09:33:23 -0500
committerAlexandre Ganea <alex_toresh@yahoo.fr>2024-01-18 13:06:12 -0500
commitbafdaa171a2806ceff628ed7b64ace2b92c05578 (patch)
treeab1426bc7f78a4e4055a4c083b405a3387e5db5f /lldb
parentd950157f7b290e35ce25647e255df9dccbcead2b (diff)
downloadllvm-bafdaa171a2806ceff628ed7b64ace2b92c05578.zip
llvm-bafdaa171a2806ceff628ed7b64ace2b92c05578.tar.gz
llvm-bafdaa171a2806ceff628ed7b64ace2b92c05578.tar.bz2
[lldb] Silence warning with latest MSVC on Windows
Fixes: ``` [3465/3822] Building CXX object tools\lldb\source\Plugins\SymbolFile\CTF\CMakeFiles\lldbPluginSymbolFileCTF.dir\SymbolFileCTF.cpp.obj C:\git\llvm-project\lldb\source\Plugins\SymbolFile\CTF\SymbolFileCTF.cpp(606) : warning C4715: 'lldb_private::SymbolFileCTF::CreateType': not all control paths return a value ```
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp b/lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp
index d192944..65f5b1a 100644
--- a/lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp
+++ b/lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp
@@ -603,6 +603,7 @@ llvm::Expected<TypeSP> SymbolFileCTF::CreateType(CTFType *ctf_type) {
ctf_type->uid, ctf_type->name, ctf_type->kind),
llvm::inconvertibleErrorCode());
}
+ llvm_unreachable("Unexpected CTF type kind");
}
llvm::Expected<std::unique_ptr<CTFType>>