We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 202ab23 + 3b48a55 commit 0cdbd17Copy full SHA for 0cdbd17
lldb/source/Plugins/ExpressionParser/Swift/SwiftASTManipulator.cpp
@@ -910,6 +910,9 @@ llvm::Expected<swift::Type> SwiftASTManipulator::GetSwiftTypeForVariable(
910
auto swift_type_or_err = m_swift_ast_ctx.GetSwiftType(referent_type);
911
if (!swift_type_or_err)
912
return swift_type_or_err.takeError();
913
+ if (!swift_type_or_err.get())
914
+ return llvm::make_error<llvm::StringError>("null Swift type",
915
+ llvm::inconvertibleErrorCode());
916
917
// One tricky bit here is that this var may be an argument to the
918
// function whose context we are emulating, and that argument might be
0 commit comments