Skip to content

Commit 4d40e13

Browse files
author
git apple-llvm automerger
committed
Merge commit '274631dc7985' from swift/release/5.5 into swift/main
2 parents 7bf69f7 + 274631d commit 4d40e13

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)