Skip to content

Commit 3cae38d

Browse files
committed
[LLDB] Fix conditional to also support AccessLevel::Open
This fixes crashes in LLDB expression evaluation when calling virtual Open functions. rdar://147797657
1 parent 1194b59 commit 3cae38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8433,7 +8433,7 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
84338433
// debugger.
84348434
bool shouldUseDispatchThunkIfInDebugger =
84358435
!classDecl->getASTContext().LangOpts.DebuggerSupport ||
8436-
methodAccess == AccessLevel::Public;
8436+
methodAccess >= AccessLevel::Public;
84378437
if (IGM.hasResilientMetadata(classDecl, ResilienceExpansion::Maximal) &&
84388438
shouldUseDispatchThunkIfInDebugger) {
84398439
shouldUseDispatchThunk = true;

0 commit comments

Comments
 (0)