diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-19 21:25:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-19 21:25:29 +0000 |
| commit | 5714ea4ea3d21448fd9c3d1f256db6eae6a9b21e (patch) | |
| tree | e02664fd4441a5bd69b1b5399ef4d49232868518 /src/llvm_backend_const.cpp | |
| parent | 9d9b190adab220a19d9afbc2df3c4a88a162d4e7 (diff) | |
| parent | cd7137af60ba2c3f1d95ae77d59e6663412eab4a (diff) | |
Merge branch 'master' into orca-dev
Diffstat (limited to 'src/llvm_backend_const.cpp')
| -rw-r--r-- | src/llvm_backend_const.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp index 2291f24ac..bbb0b8387 100644 --- a/src/llvm_backend_const.cpp +++ b/src/llvm_backend_const.cpp @@ -1302,11 +1302,11 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bo GB_ASSERT_MSG(elem_count == max_count, "%td != %td", elem_count, max_count); LLVMValueRef *values = gb_alloc_array(temporary_allocator(), LLVMValueRef, cast(isize)total_count); - for_array(i, cl->elems) { TypeAndValue tav = cl->elems[i]->tav; GB_ASSERT(tav.mode != Addressing_Invalid); - i64 offset = matrix_row_major_index_to_offset(type, i); + i64 offset = 0; + offset = matrix_row_major_index_to_offset(type, i); values[offset] = lb_const_value(m, elem_type, tav.value, allow_local).value; } for (isize i = 0; i < total_count; i++) { |