[Lldb-commits] [lldb] r210941 - Don't dereference target if it is NULL.
Greg Clayton
gclayton at apple.com
Fri Jun 13 14:57:58 PDT 2014
Author: gclayton
Date: Fri Jun 13 16:57:58 2014
New Revision: 210941
URL: http://llvm.org/viewvc/llvm-project?rev=210941&view=rev
Log:
Don't dereference target if it is NULL.
Caught by the clang static analyzer by Jason Molenda.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=210941&r1=210940&r2=210941&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Fri Jun 13 16:57:58 2014
@@ -1376,7 +1376,7 @@ ClangExpressionDeclMap::FindExternalVisi
}
else if (sym_ctx.symbol)
{
- if (sym_ctx.symbol->GetType() == eSymbolTypeReExported)
+ if (sym_ctx.symbol->GetType() == eSymbolTypeReExported && target)
{
sym_ctx.symbol = sym_ctx.symbol->ResolveReExportedSymbol(*target);
if (sym_ctx.symbol == NULL)
More information about the lldb-commits
mailing list