Skip to content

Commit 274631d

Browse files
Merge pull request #3049 from adrian-prantl/79224302-5.5
Add missing nullptr check
2 parents e7bb1b1 + 35de8b0 commit 274631d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,8 +2287,10 @@ SwiftLanguageRuntime::GetRuntimeUnwindPlan(ProcessSP process_sp,
22872287
// needs to be dereferenced to get the actual function's context.
22882288
// The debug info for locals reflects this difference, so our unwinding of the
22892289
// context register needs to reflect it too.
2290-
bool indirect_context = IsSwiftAsyncAwaitResumePartialFunctionSymbol(
2291-
sc.symbol->GetMangled().GetMangledName().GetStringRef());
2290+
bool indirect_context =
2291+
sc.symbol ? IsSwiftAsyncAwaitResumePartialFunctionSymbol(
2292+
sc.symbol->GetMangled().GetMangledName().GetStringRef())
2293+
: false;
22922294

22932295
if (indirect_context) {
22942296
// In a "resume" coroutine, the passed context argument needs to be

0 commit comments

Comments
 (0)