aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-23 23:20:07 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-28 23:55:49 +0800
commit168f64f4cb55a7055261a4c66ca54f496e96b503 (patch)
treeebad17e2b6450183c2ef4b6738f1faa169f2dd65 /libsolidity/codegen/ExpressionCompiler.cpp
parent46caff4597a1cafbafe0cbcc9fb7e7478dd2a0e3 (diff)
downloaddexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.gz
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.bz2
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.lz
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.xz
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.zst
dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.zip
Fix negative stack size checks.
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index a65549fd..9d4024c9 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -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);