Cache const string16 in LLVM

This commit is contained in:
gingerBill committed 2025-08-02 12:32:18 +01:00
1 parent bb4bc316a4
commit 620bf162a0
6 files changed
+83 -13

No files matched your search

-6
View File
@@ -2526,12 +2526,6 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
if (is_type_untyped(src)) {
if (is_type_string(src) && is_type_string16(dst)) {
GB_PANIC("TODO(bill): UTF-16 string");
lbAddr result = lb_add_local_generated(p, t, false);
lb_addr_store(p, result, value);
return lb_addr_load(p, result);
}
if (is_type_string(src) && is_type_string(dst)) {
lbAddr result = lb_add_local_generated(p, t, false);
lb_addr_store(p, result, value);