mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Fix indexing code gen for multi-pointers
This commit is contained in:
@@ -2870,7 +2870,7 @@ lbAddr lb_build_addr(lbProcedure *p, Ast *expr) {
|
|||||||
|
|
||||||
LLVMValueRef indices[1] = {index.value};
|
LLVMValueRef indices[1] = {index.value};
|
||||||
v.value = LLVMBuildGEP(p->builder, multi_ptr.value, indices, 1, "");
|
v.value = LLVMBuildGEP(p->builder, multi_ptr.value, indices, 1, "");
|
||||||
v.type = t;
|
v.type = alloc_type_pointer(t->MultiPointer.elem);
|
||||||
return lb_addr(v);
|
return lb_addr(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user