Fix negative stack size checks.

This commit is contained in:
chriseth authored and Alex Beregszaszi committed 2017-06-28 16:55:49 +01:00
1 parent 46caff4597
commit 168f64f4cb
4 files changed
+13

No files matched your search

@@ -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);