diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-20 01:54:36 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-20 01:54:36 +0100 |
| commit | b54f3d4ee9a57e0a88140ad581b8fae6ca28a11f (patch) | |
| tree | 6b5b741e4cb44eaa3bb0f3e9d4eee46f93e4011b /src/llvm_backend_const.cpp | |
| parent | bcdcad5847fb379269f6e76df52c33cea90f095a (diff) | |
Mock out more global value stuff
Diffstat (limited to 'src/llvm_backend_const.cpp')
| -rw-r--r-- | src/llvm_backend_const.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp index a152e00c2..5c390a370 100644 --- a/src/llvm_backend_const.cpp +++ b/src/llvm_backend_const.cpp @@ -567,7 +567,7 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bo } } else if (is_type_array(type) && value.kind == ExactValue_String && !is_type_u8(core_array_type(type))) { - if (is_type_rune_array(type) && value.kind == ExactValue_String) { + if (is_type_rune_array(type)) { i64 count = type->Array.count; Type *elem = type->Array.elem; LLVMTypeRef et = lb_type(m, elem); |