Skip to content

Commit bafdaa1

Browse files
committed
[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 ```
1 parent d950157 commit bafdaa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ llvm::Expected<TypeSP> SymbolFileCTF::CreateType(CTFType *ctf_type) {
603603
ctf_type->uid, ctf_type->name, ctf_type->kind),
604604
llvm::inconvertibleErrorCode());
605605
}
606+
llvm_unreachable("Unexpected CTF type kind");
606607
}
607608

608609
llvm::Expected<std::unique_ptr<CTFType>>

0 commit comments

Comments
 (0)