mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2381 from ethereum/fixcrash
Fix a crash about a non-callable expression.
This commit is contained in:
@@ -1287,14 +1287,11 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
|
||||
membersRemovedForStructConstructor = structType.membersMissingInMemory();
|
||||
_functionCall.annotation().isPure = isPure;
|
||||
}
|
||||
else
|
||||
{
|
||||
functionType = dynamic_pointer_cast<FunctionType const>(expressionType);
|
||||
else if ((functionType = dynamic_pointer_cast<FunctionType const>(expressionType)))
|
||||
_functionCall.annotation().isPure =
|
||||
isPure &&
|
||||
_functionCall.expression().annotation().isPure &&
|
||||
functionType->isPure();
|
||||
}
|
||||
|
||||
if (!functionType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user