aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_const.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-08-02 12:32:18 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-08-02 12:32:18 +0100
commit620bf162a048fdf29fdfcedc12abae79cffeedf4 (patch)
tree0cac112f7f7d2c0983280b4acb0e9e1688dafa70 /src/llvm_backend_const.cpp
parentbb4bc316a4bd86774953f1e8fcefffb5ed8bbf37 (diff)
Cache const `string16` in LLVM
Diffstat (limited to 'src/llvm_backend_const.cpp')
-rw-r--r--src/llvm_backend_const.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp
index 8c05ed4a2..cba0000cd 100644
--- a/src/llvm_backend_const.cpp
+++ b/src/llvm_backend_const.cpp
@@ -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);