mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Cache const string16 in LLVM
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user