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

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

parent d018cfd5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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