mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 18:02:02 +00:00
cg_emit_load/cg_emit_store
This commit is contained in:
@@ -50,6 +50,10 @@ gb_internal cgValue cg_build_expr(cgProcedure *p, Ast *expr) {
|
||||
}
|
||||
|
||||
cgValue res = cg_build_expr_internal(p, expr);
|
||||
if (res.kind == cgValue_Symbol) {
|
||||
GB_ASSERT(is_type_pointer(res.type));
|
||||
res = cg_value(tb_inst_get_symbol_address(p->func, res.symbol), res.type);
|
||||
}
|
||||
|
||||
if (expr->state_flags & StateFlag_SelectorCallExpr) {
|
||||
// map_set(&p->selector_values, expr, res);
|
||||
|
||||
Reference in New Issue
Block a user