diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-02 17:22:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-02 17:22:56 +0100 |
| commit | 00671a59a038c5fc9d4b2af02ca2194092b00778 (patch) | |
| tree | c5e0689afb44fc3444a1666686d7fef4d7c03aba /src/llvm_backend_utility.cpp | |
| parent | ebca0398a7ec76374322001e697a0aaa531eb22f (diff) | |
Minor code cleanup for backend; add `struct_fields_index_by_increasing_offset` for future use
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index 8e4e2008a..0531c62bb 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -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); |