diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
| commit | e748d2f2af40895f1b067aaa74ac2ca2b737a243 (patch) | |
| tree | ea176294a9a2b7845751ef96aab63f28bed61523 /src/llvm_backend_expr.cpp | |
| parent | ecde06e3a31179bd8f86383fd65cfbce31ab6d9a (diff) | |
Update to LLVM-17
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 33768cc12..e8569eba9 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -4271,7 +4271,7 @@ gb_internal lbAddr lb_build_addr_compound_lit(lbProcedure *p, Ast *expr) { unsigned len_index = lb_convert_struct_index(p->module, type, 1); if (lb_is_const(slice)) { unsigned indices[1] = {len_index}; - count.value = LLVMConstExtractValue(slice.value, indices, gb_count_of(indices)); + count.value = llvm_const_extract_value(p->module, slice.value, indices, gb_count_of(indices)); } else { count.value = LLVMBuildExtractValue(p->builder, slice.value, len_index, ""); } |