mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Planning for multi-valued expressions in the tilde backend
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
gb_internal cgValue cg_flatten_value(cgProcedure *p, cgValue value) {
|
||||
GB_ASSERT(value.kind != cgValue_Multi);
|
||||
if (value.kind == cgValue_Symbol) {
|
||||
GB_ASSERT(is_type_internally_pointer_like(value.type));
|
||||
value = cg_value(tb_inst_get_symbol_address(p->func, value.symbol), value.type);
|
||||
@@ -152,6 +153,9 @@ gb_internal cgValue cg_emit_transmute(cgProcedure *p, cgValue value, Type *type)
|
||||
case cgValue_Symbol:
|
||||
GB_PANIC("should be handled above");
|
||||
break;
|
||||
case cgValue_Multi:
|
||||
GB_PANIC("cannot transmute multiple values at once");
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user