Commit 2c808051 authored by Roberto Raggi's avatar Roberto Raggi

Fixed possible crash when searching the canonical symbol.

parent ee324b0b
......@@ -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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment