Minor code cleanup for backend; add struct_fields_index_by_increasing_offset for future use

This commit is contained in:
gingerBill
2021-10-02 17:22:56 +01:00
parent ebca0398a7
commit 00671a59a0
9 changed files with 99 additions and 113 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ lbValue lb_emit_string(lbProcedure *p, lbValue str_elem, lbValue str_len) {
};
lbValue res = {};
res.type = t_string;
res.value = llvm_const_named_struct(lb_type(p->module, t_string), values, gb_count_of(values));
res.value = llvm_const_named_struct(p->module, t_string, values, gb_count_of(values));
return res;
} else {
lbAddr res = lb_add_local_generated(p, t_string, false);