Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e85390c

Browse files
authored
Merge pull request argotorg#1302 from ethereum/lll-panic
LLL: introduce panic keyword
2 parents 2367ce5 + 274c76f commit e85390c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

liblll/CodeFragment.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,10 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
580580
m_asm.append(i.m_asm);
581581
m_asm.popTo(1);
582582
}
583+
else if (us == "PANIC")
584+
{
585+
m_asm.appendJump(m_asm.errorTag());
586+
}
583587
else if (us.find_first_of("1234567890") != 0 && us.find_first_not_of("QWERTYUIOPASDFGHJKLZXCVBNM1234567890_") == string::npos)
584588
m_asm.append((u256)varAddress(s));
585589
else

0 commit comments

Comments
 (0)