Skip to content
Snippets Groups Projects
Commit 2c808051 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed possible crash when searching the canonical symbol.

parent ee324b0b
No related branches found
No related tags found
No related merge requests found
......@@ -581,6 +581,8 @@ Symbol *LookupContext::canonicalSymbol(Symbol *symbol,
NamespaceBinding *globalNamespace)
{
Symbol *canonicalSymbol = LookupContext::canonicalSymbol(symbol);
if (! canonicalSymbol)
return 0;
if (Identifier *symbolId = canonicalSymbol->identifier()) {
if (symbolId && canonicalSymbol->type()->isFunctionType()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment