mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
IRNames::function(): Return correct name if the function is a constructor
This commit is contained in:
parent
529495c530
commit
64d14b4cc4
@ -35,6 +35,9 @@ YulArity YulArity::fromType(FunctionType const& _functionType)
|
||||
|
||||
string IRNames::function(FunctionDefinition const& _function)
|
||||
{
|
||||
if (_function.isConstructor())
|
||||
return implicitConstructor(*_function.annotation().contract);
|
||||
|
||||
return "fun_" + _function.name() + "_" + to_string(_function.id());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user