diff options
author | chriseth <chris@ethereum.org> | 2017-07-05 00:28:44 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-07-05 01:33:55 +0800 |
commit | d58e4390942c6347c75cb5d45b503711338e80eb (patch) | |
tree | 191b3e8ca085045a623d680aec411582b0d5afc1 /libsolidity | |
parent | 0cb93a5f7b0a12d205d9acfc9ed342494c90ab1f (diff) | |
download | dexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.tar.gz dexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.tar.zst dexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.zip |
Fix internal "variable already present" error.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index c358a519..cad388df 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -928,7 +928,10 @@ void ContractCompiler::appendModifierOrFunctionCode() ); } for (VariableDeclaration const* localVariable: modifier.localVariables()) + { + addedVariables.push_back(localVariable); appendStackVariableInitialisation(*localVariable); + } stackSurplus = CompilerUtils::sizeOnStack(modifier.parameters()) + |