getelementptr

This commit is contained in:
Rochas
2025-04-30 16:11:55 +02:00
parent 15ad215e6f
commit a1f597c67e
5 changed files with 24 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ public class toLLVM_Visitor implements ProgramVisitor<SymTable,ProgramLLVMImp>,
h = r.symTable;
list.add(new AssignLLVMImp(new VarLLVMImp(t2, r.var,false),new allocaLLVMImp(t2)));
}else {
TypeLLVM arrayType = new ArrayLLVMImp(t2, size);
TypeLLVM arrayType = new PointerLLVMImp(t2);
//Alloca
Result r_size= h.addNewTempVar();