mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 13:44:59 -07: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};
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user