mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
IRGenerationContext::internalDispatch(): Don't use asCallableFunction() to get internal function type
This commit is contained in:
parent
a05e8c1a0e
commit
b0ae85b6b0
@ -153,7 +153,7 @@ string IRGenerationContext::internalDispatch(size_t _in, size_t _out)
|
|||||||
for (auto const& contract: mostDerivedContract().annotation().linearizedBaseContracts)
|
for (auto const& contract: mostDerivedContract().annotation().linearizedBaseContracts)
|
||||||
for (FunctionDefinition const* function: contract->definedFunctions())
|
for (FunctionDefinition const* function: contract->definedFunctions())
|
||||||
if (
|
if (
|
||||||
FunctionType const* functionType = TypeProvider::function(*function)->asCallableFunction(false);
|
FunctionType const* functionType = TypeProvider::function(*function, FunctionType::Kind::Internal);
|
||||||
!function->isConstructor() &&
|
!function->isConstructor() &&
|
||||||
TupleType(functionType->parameterTypes()).sizeOnStack() == _in &&
|
TupleType(functionType->parameterTypes()).sizeOnStack() == _in &&
|
||||||
TupleType(functionType->returnParameterTypes()).sizeOnStack() == _out
|
TupleType(functionType->returnParameterTypes()).sizeOnStack() == _out
|
||||||
|
Loading…
Reference in New Issue
Block a user