mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
renamed local vaiable in fromDeclaration
added missing endvisit
This commit is contained in:
parent
d0c36795a0
commit
fa3cd1cdc2
@ -214,6 +214,7 @@ void VariableDeclaration::accept(ASTConstVisitor& _visitor) const
|
||||
if (m_value)
|
||||
m_value->accept(_visitor);
|
||||
}
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
void ModifierDefinition::accept(ASTVisitor& _visitor)
|
||||
|
@ -68,9 +68,9 @@ void ExpressionCompiler::appendStateVariableInitialization(CompilerContext& _con
|
||||
|
||||
void ExpressionCompiler::appendStateVariableInitialization(VariableDeclaration const& _varDecl)
|
||||
{
|
||||
LValue lvalue = LValue(m_context);
|
||||
lvalue.fromDeclaration(_varDecl, _varDecl.getValue()->getLocation());
|
||||
lvalue.storeValue(*_varDecl.getType(), _varDecl.getLocation());
|
||||
LValue var = LValue(m_context);
|
||||
var.fromDeclaration(_varDecl, _varDecl.getValue()->getLocation());
|
||||
var.storeValue(*_varDecl.getType(), _varDecl.getLocation());
|
||||
}
|
||||
|
||||
bool ExpressionCompiler::visit(Assignment const& _assignment)
|
||||
|
Loading…
Reference in New Issue
Block a user