diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -1769,7 +1769,7 @@ return false; s.PutCString(name); - if (sc->block->GetContainingInlinedBlock()) { + if (sc->block && sc->block->GetContainingInlinedBlock()) { if (const InlineFunctionInfo *inline_info = sc->block->GetInlinedFunctionInfo()) { s.PutCString(" [inlined] ");