From 510f4098ae047a09d58e3e0421e8855396b95900 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 25 Jun 2019 19:50:12 +0000 Subject: [PATCH] Add a defensive check for nullptr as in the block above. Unfortunately I had to work backwards from a crash log, so I don't have a good testcase at this point in time. rdar://problem/51874647 llvm-svn: 364344 --- lldb/source/Target/CPPLanguageRuntime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Target/CPPLanguageRuntime.cpp b/lldb/source/Target/CPPLanguageRuntime.cpp index 836523a5b23a..8e503bd4932d 100644 --- a/lldb/source/Target/CPPLanguageRuntime.cpp +++ b/lldb/source/Target/CPPLanguageRuntime.cpp @@ -280,7 +280,7 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( } // Case 4 or 5 - if (!symbol->GetName().GetStringRef().startswith("vtable for")) { + if (symbol && !symbol->GetName().GetStringRef().startswith("vtable for")) { optional_info.callable_case = LibCppStdFunctionCallableCase::FreeOrMemberFunction; optional_info.callable_address = function_address_resolved;