Rename built-in procedure to expand_values

This commit is contained in:
gingerBill
2023-02-07 15:39:39 +00:00
parent 7bbcf22deb
commit 8a16fd7699
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -1836,7 +1836,7 @@ gb_internal lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValu
return lb_emit_conjugate(p, val, tv.type);
}
case BuiltinProc_expand_to_tuple: {
case BuiltinProc_expand_values: {
lbValue val = lb_build_expr(p, ce->args[0]);
Type *t = base_type(val.type);
@@ -1848,7 +1848,7 @@ gb_internal lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValu
GB_ASSERT(t->Array.count == 1);
return lb_emit_struct_ev(p, val, 0);
} else {
GB_PANIC("Unknown type of expand_to_tuple");
GB_PANIC("Unknown type of expand_values");
}
}
@@ -1874,7 +1874,7 @@ gb_internal lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValu
lb_emit_store(p, ep, f);
}
} else {
GB_PANIC("Unknown type of expand_to_tuple");
GB_PANIC("Unknown type of expand_values");
}
return lb_emit_load(p, tuple);
}