File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lldb/source/Plugins/ExpressionParser/Swift Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -449,13 +449,15 @@ static CompilerType GetSwiftTypeForVariableValueObject(
449
449
SwiftLanguageRuntime *runtime) {
450
450
// Check that the passed ValueObject is valid.
451
451
if (!valobj_sp || valobj_sp->GetError ().Fail ())
452
- return CompilerType () ;
452
+ return {} ;
453
453
CompilerType result = valobj_sp->GetCompilerType ();
454
- if (!result. IsValid () )
455
- return CompilerType () ;
454
+ if (!result)
455
+ return {} ;
456
456
result = runtime->BindGenericTypeParameters (*stack_frame_sp, result);
457
+ if (!result)
458
+ return {};
457
459
if (!result.GetTypeSystem ()->SupportsLanguage (lldb::eLanguageTypeSwift))
458
- return CompilerType () ;
460
+ return {} ;
459
461
return result;
460
462
}
461
463
You can’t perform that action at this time.
0 commit comments