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:
parent
0cb93a5f7b
commit
d58e439094
@ -928,7 +928,10 @@ void ContractCompiler::appendModifierOrFunctionCode()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (VariableDeclaration const* localVariable: modifier.localVariables())
|
for (VariableDeclaration const* localVariable: modifier.localVariables())
|
||||||
|
{
|
||||||
|
addedVariables.push_back(localVariable);
|
||||||
appendStackVariableInitialisation(*localVariable);
|
appendStackVariableInitialisation(*localVariable);
|
||||||
|
}
|
||||||
|
|
||||||
stackSurplus =
|
stackSurplus =
|
||||||
CompilerUtils::sizeOnStack(modifier.parameters()) +
|
CompilerUtils::sizeOnStack(modifier.parameters()) +
|
||||||
|
Loading…
Reference in New Issue
Block a user