aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-05 00:28:44 +0800
committerchriseth <chris@ethereum.org>2017-07-05 01:33:55 +0800
commitd58e4390942c6347c75cb5d45b503711338e80eb (patch)
tree191b3e8ca085045a623d680aec411582b0d5afc1
parent0cb93a5f7b0a12d205d9acfc9ed342494c90ab1f (diff)
downloaddexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.tar.gz
dexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.tar.zst
dexon-solidity-d58e4390942c6347c75cb5d45b503711338e80eb.zip
Fix internal "variable already present" error.
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp3
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()) +