Fix negative stack size checks.

This commit is contained in:
chriseth
2017-06-28 16:55:49 +01:00
committed by Alex Beregszaszi
parent 46caff4597
commit 168f64f4cb
4 changed files with 13 additions and 0 deletions
@@ -88,6 +88,7 @@ void ExpressionCompiler::appendStateVariableAccessor(VariableDeclaration const&
FunctionType accessorType(_varDecl);
TypePointers paramTypes = accessorType.parameterTypes();
m_context.adjustStackOffset(1 + CompilerUtils::sizeOnStack(paramTypes));
// retrieve the position of the variable
auto const& location = m_context.storageLocationOfVariable(_varDecl);