mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use assertThrow where possible
This commit is contained in:
@@ -59,14 +59,11 @@ void Assembly::append(Assembly const& _a)
|
||||
|
||||
void Assembly::append(Assembly const& _a, int _deposit)
|
||||
{
|
||||
if (_deposit > _a.m_deposit)
|
||||
BOOST_THROW_EXCEPTION(InvalidDeposit());
|
||||
else
|
||||
{
|
||||
append(_a);
|
||||
while (_deposit++ < _a.m_deposit)
|
||||
append(Instruction::POP);
|
||||
}
|
||||
assertThrow(_deposit <= _a.m_deposit, InvalidDeposit, "");
|
||||
|
||||
append(_a);
|
||||
while (_deposit++ < _a.m_deposit)
|
||||
append(Instruction::POP);
|
||||
}
|
||||
|
||||
unsigned Assembly::bytesRequired(unsigned subTagSize) const
|
||||
|
||||
Reference in New Issue
Block a user