Fix indexing code gen for multi-pointers

This commit is contained in:
gingerBill
2021-08-22 16:55:57 +01:00
parent 07bfb55658
commit db6fad7396
+1 -1
View File
@@ -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);
}