mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Fixed a crash when we tried dyn_cast<>ing a
null pointer. <rdar://problem/13745684> llvm-svn: 180663
This commit is contained in:
@@ -1328,6 +1328,9 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
|
||||
{
|
||||
clang::DeclContext *decl_ctx = sym_ctx.function->GetClangDeclContext();
|
||||
|
||||
if (!decl_ctx)
|
||||
continue;
|
||||
|
||||
// Filter out class/instance methods.
|
||||
if (dyn_cast<clang::ObjCMethodDecl>(decl_ctx))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user