diff options
author | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-18 09:33:23 -0500 |
---|---|---|
committer | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-18 13:06:12 -0500 |
commit | bafdaa171a2806ceff628ed7b64ace2b92c05578 (patch) | |
tree | ab1426bc7f78a4e4055a4c083b405a3387e5db5f /lldb | |
parent | d950157f7b290e35ce25647e255df9dccbcead2b (diff) | |
download | llvm-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.cpp | 1 |
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>> |