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"); }
void FlowCallVisitor::accept(AssignStmt& assignStmt) { visit(assignStmt.expression()); }