mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Cleanup function for internal function pointers.
This commit is contained in:
parent
7ad319687d
commit
4d739b16a4
@ -1779,8 +1779,18 @@ string YulUtilFunctions::cleanupFunction(Type const& _type)
|
|||||||
solUnimplemented("Fixed point types not implemented.");
|
solUnimplemented("Fixed point types not implemented.");
|
||||||
break;
|
break;
|
||||||
case Type::Category::Function:
|
case Type::Category::Function:
|
||||||
solAssert(dynamic_cast<FunctionType const&>(_type).kind() == FunctionType::Kind::External, "");
|
switch (dynamic_cast<FunctionType const&>(_type).kind())
|
||||||
templ("body", "cleaned := " + cleanupFunction(FixedBytesType(24)) + "(value)");
|
{
|
||||||
|
case FunctionType::Kind::External:
|
||||||
|
templ("body", "cleaned := " + cleanupFunction(FixedBytesType(24)) + "(value)");
|
||||||
|
break;
|
||||||
|
case FunctionType::Kind::Internal:
|
||||||
|
templ("body", "cleaned := value");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
solAssert(false, "");
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Type::Category::Array:
|
case Type::Category::Array:
|
||||||
case Type::Category::Struct:
|
case Type::Category::Struct:
|
||||||
|
Loading…
Reference in New Issue
Block a user