File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8431,11 +8431,10 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
8431
8431
// Because typechecking for the debugger has more lax rules, check the access
8432
8432
// level of the getter to decide whether to use a dispatch thunk for the
8433
8433
// debugger.
8434
- bool shouldUseDispatchThunkIfInDebugger =
8435
- !classDecl->getASTContext ().LangOpts .DebuggerSupport ||
8436
- methodAccess >= AccessLevel::Public;
8434
+ bool inDebugger = classDecl->getASTContext ().LangOpts .DebuggerSupport ;
8435
+ bool shouldUseDispatchThunkIfInDebugger = methodAccess >= AccessLevel::Public;
8437
8436
if (IGM.hasResilientMetadata (classDecl, ResilienceExpansion::Maximal) &&
8438
- shouldUseDispatchThunkIfInDebugger) {
8437
+ (!inDebugger || shouldUseDispatchThunkIfInDebugger) ) {
8439
8438
shouldUseDispatchThunk = true ;
8440
8439
} else if (IGM.getOptions ().VirtualFunctionElimination ) {
8441
8440
// For VFE, use a thunk if the target class is in another module. This
You can’t perform that action at this time.
0 commit comments