Commit 0d1624d4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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

parent d018cfd5
......@@ -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)
......
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