mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix internal "variable already present" error.
This commit is contained in:
1 parent
0cb93a5f7b
commit
d58e439094
1 file changed
+3
@@ -928,7 +928,10 @@ void ContractCompiler::appendModifierOrFunctionCode()
|
||||
);
|
||||
}
|
||||
for (VariableDeclaration const* localVariable: modifier.localVariables())
|
||||
{
|
||||
addedVariables.push_back(localVariable);
|
||||
appendStackVariableInitialisation(*localVariable);
|
||||
}
|
||||
|
||||
stackSurplus =
|
||||
CompilerUtils::sizeOnStack(modifier.parameters()) +
|
||||
|
||||
Reference in new issue
Block a user