File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lldb/source/Plugins/ExpressionParser/Swift Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -503,22 +503,22 @@ static bool CanEvaluateExpressionWithoutBindingGenericParams(
503
503
if (!self_type)
504
504
return false ;
505
505
506
- auto *ts = self_type.GetTypeSystem ()
507
- .dyn_cast_or_null <TypeSystemSwift>()
508
- ->GetSwiftASTContext ();
509
-
506
+ auto ts = self_type.GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
510
507
if (!ts)
511
508
return false ;
512
509
513
- auto swift_type = ts->GetSwiftType (self_type);
510
+ auto *swift_ast_ctx = ts->GetSwiftASTContext ();
511
+ if (!swift_ast_ctx)
512
+ return false ;
513
+
514
+ auto swift_type = swift_ast_ctx->GetSwiftType (self_type);
514
515
if (!swift_type)
515
516
return false ;
516
517
517
518
auto *decl = swift_type->getAnyGeneric ();
518
519
if (!decl)
519
520
return false ;
520
521
521
-
522
522
auto *env = decl->getGenericEnvironment ();
523
523
if (!env)
524
524
return false ;
You can’t perform that action at this time.
0 commit comments