Skip to content

Commit 856d12b

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 (cherry picked from commit f4a0f4b)
1 parent eadd617 commit 856d12b

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
@@ -8398,7 +8398,7 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
83988398
// debugger.
83998399
bool shouldUseDispatchThunkIfInDebugger =
84008400
!classDecl->getASTContext().LangOpts.DebuggerSupport ||
8401-
methodAccess == AccessLevel::Public;
8401+
methodAccess >= AccessLevel::Public;
84028402
if (IGM.hasResilientMetadata(classDecl, ResilienceExpansion::Maximal) &&
84038403
shouldUseDispatchThunkIfInDebugger) {
84048404
shouldUseDispatchThunk = true;

0 commit comments

Comments
 (0)