mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6391 from ethereum/yul-move
Use move semantics on StackToDeepError
This commit is contained in:
commit
85e1223112
@ -536,7 +536,7 @@ void CodeTransform::operator()(FunctionDefinition const& _function)
|
|||||||
StackTooDeepError error(_error);
|
StackTooDeepError error(_error);
|
||||||
if (error.functionName.empty())
|
if (error.functionName.empty())
|
||||||
error.functionName = _function.name;
|
error.functionName = _function.name;
|
||||||
stackError(error, height);
|
stackError(std::move(error), height);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -566,7 +566,7 @@ void CodeTransform::operator()(FunctionDefinition const& _function)
|
|||||||
to_string(stackLayout.size() - 17) +
|
to_string(stackLayout.size() - 17) +
|
||||||
" parameters or return variables too many to fit the stack size."
|
" parameters or return variables too many to fit the stack size."
|
||||||
);
|
);
|
||||||
stackError(error, m_assembly.stackHeight() - _function.parameters.size());
|
stackError(std::move(error), m_assembly.stackHeight() - _function.parameters.size());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user