Esempio n. 1
0
void IRGenerator::accept(AssignStmt& stmt)
{
    FNTRACE();

    Value* lhs = scope().lookup(stmt.variable());
    Value* rhs = codegen(stmt.expression());
    assert(lhs->type() == rhs->type() && "Type of lhs and rhs must be equal.");

    result_ = createStore(lhs, rhs, "assignment");
}
Esempio n. 2
0
void FlowCallVisitor::accept(AssignStmt& assignStmt)
{
    visit(assignStmt.expression());
}