forked from qt-creator/qt-creator
Fixes: Possible crash when searching for the definitions of enumerators.
This commit is contained in:
@@ -593,6 +593,8 @@ Symbol *CPPEditor::findDefinition(Symbol *symbol)
|
|||||||
{
|
{
|
||||||
if (symbol->isFunction())
|
if (symbol->isFunction())
|
||||||
return 0; // symbol is a function definition.
|
return 0; // symbol is a function definition.
|
||||||
|
else if (! symbol->type())
|
||||||
|
return 0;
|
||||||
|
|
||||||
Function *funTy = symbol->type()->asFunctionType();
|
Function *funTy = symbol->type()->asFunctionType();
|
||||||
if (! funTy)
|
if (! funTy)
|
||||||
|
Reference in New Issue
Block a user