Cache const string16 in LLVM

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

View File

@@ -594,7 +594,7 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, lb
return res;
} else if (value.kind == ExactValue_String16) {
GB_ASSERT(is_type_slice(type));
GB_PANIC("TODO(bill): UTF-16 String");
res.value = lb_find_or_add_entity_string16_slice_with_type(m, value.value_string16, original_type).value;
return res;
}else {
ast_node(cl, CompoundLit, value.value_compound);