aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_const.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-20 01:54:36 +0100
committergingerBill <bill@gingerbill.org>2023-07-20 01:54:36 +0100
commitb54f3d4ee9a57e0a88140ad581b8fae6ca28a11f (patch)
tree6b5b741e4cb44eaa3bb0f3e9d4eee46f93e4011b /src/llvm_backend_const.cpp
parentbcdcad5847fb379269f6e76df52c33cea90f095a (diff)
Mock out more global value stuff
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 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);