mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-15 00:11:55 +00:00
Simplify procedure argument handling
This commit is contained in:
@@ -851,7 +851,7 @@ gb_internal cgValue cg_const_value(cgModule *m, cgProcedure *p, Type *type, Exac
|
||||
TB_Node *node = tb_inst_get_symbol_address(p->func, symbol);
|
||||
return cg_lvalue_addr(node, type);
|
||||
} else {
|
||||
return cg_value(symbol, type);
|
||||
return cg_value(symbol, alloc_type_pointer(type));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user