mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-15 16:51:47 -04:00
Update to LLVM-17
This commit is contained in:
1 parent
ecde06e3a3
commit
e748d2f2af
44 files changed
+2356
-1079
No files matched your search
@@ -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, "");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user