mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2480 from chriseth/sol_relaxStackHeightCheck
Allow one additional stack slot.
This commit is contained in:
commit
79a8effaa4
@ -41,7 +41,7 @@ StackVariable::StackVariable(CompilerContext& _compilerContext, Declaration cons
|
|||||||
void StackVariable::retrieveValue(SourceLocation const& _location, bool) const
|
void StackVariable::retrieveValue(SourceLocation const& _location, bool) const
|
||||||
{
|
{
|
||||||
unsigned stackPos = m_context.baseToCurrentStackOffset(m_baseStackOffset);
|
unsigned stackPos = m_context.baseToCurrentStackOffset(m_baseStackOffset);
|
||||||
if (stackPos >= 15) //@todo correct this by fetching earlier or moving to memory
|
if (stackPos + 1 > 16) //@todo correct this by fetching earlier or moving to memory
|
||||||
BOOST_THROW_EXCEPTION(
|
BOOST_THROW_EXCEPTION(
|
||||||
CompilerError() <<
|
CompilerError() <<
|
||||||
errinfo_sourceLocation(_location) <<
|
errinfo_sourceLocation(_location) <<
|
||||||
|
Loading…
Reference in New Issue
Block a user