Fixes: Possible crash when searching for the definitions of enumerators.

This commit is contained in:
Roberto Raggi
2009-02-09 20:38:00 +01:00
parent d018cfd5cb
commit 0d1624d4d1

View File

@@ -593,6 +593,8 @@ Symbol *CPPEditor::findDefinition(Symbol *symbol)
{
if (symbol->isFunction())
return 0; // symbol is a function definition.
else if (! symbol->type())
return 0;
Function *funTy = symbol->type()->asFunctionType();
if (! funTy)