The problem occurs here:
ret->fullType = getFunctionType(astStackHelper.getParent(), ret->operands);
astStackHelper.getParent() is null for a top-level expression, which causes getFunctionType to crash.
Instead of calling astStackHelper.getParent(), shouldn't it try to determine the return type of the functions in the specified function table?
The problem occurs here:
ret->fullType = getFunctionType(astStackHelper.getParent(), ret->operands);astStackHelper.getParent()is null for a top-level expression, which causesgetFunctionTypeto crash.Instead of calling
astStackHelper.getParent(), shouldn't it try to determine the return type of the functions in the specified function table?