mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LLL: terminate sequences with a STOP
This commit is contained in:
parent
82fadfd1a7
commit
c320a650f9
@ -45,6 +45,10 @@ using namespace dev::lll;
|
|||||||
|
|
||||||
void CodeFragment::finalise(CompilerState const& _cs)
|
void CodeFragment::finalise(CompilerState const& _cs)
|
||||||
{
|
{
|
||||||
|
// NOTE: add this as a safeguard in case the user didn't issue an
|
||||||
|
// explicit stop at the end of the sequence
|
||||||
|
m_asm.append(Instruction::STOP);
|
||||||
|
|
||||||
if (_cs.usedAlloc && _cs.vars.size() && !m_finalised)
|
if (_cs.usedAlloc && _cs.vars.size() && !m_finalised)
|
||||||
{
|
{
|
||||||
m_finalised = true;
|
m_finalised = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user