Fix internal "variable already present" error.

This commit is contained in:
chriseth 2017-07-04 18:28:44 +02:00
parent 0cb93a5f7b
commit d58e439094

View File

@ -928,7 +928,10 @@ void ContractCompiler::appendModifierOrFunctionCode()
);
}
for (VariableDeclaration const* localVariable: modifier.localVariables())
{
addedVariables.push_back(localVariable);
appendStackVariableInitialisation(*localVariable);
}
stackSurplus =
CompilerUtils::sizeOnStack(modifier.parameters()) +