Mock out more global value stuff

This commit is contained in:
gingerBill
2023-07-20 01:54:36 +01:00
parent bcdcad5847
commit b54f3d4ee9
2 changed files with 212 additions and 129 deletions
+1 -1
View File
@@ -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);