Begin work on making the type info table be constantly initialized

This commit is contained in:
gingerBill
2023-09-22 14:39:51 +01:00
parent 5e99289d7a
commit 082324d7b9
8 changed files with 960 additions and 54 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ gb_internal void lb_append_to_compiler_used(lbModule *m, LLVMValueRef func) {
}
LLVMTypeRef Int8PtrTy = LLVMPointerType(LLVMInt8TypeInContext(m->ctx), 0);
LLVMTypeRef ATy = LLVMArrayType(Int8PtrTy, operands);
LLVMTypeRef ATy = llvm_array_type(Int8PtrTy, operands);
constants[operands - 1] = LLVMConstBitCast(func, Int8PtrTy);
LLVMValueRef initializer = LLVMConstArray(Int8PtrTy, constants, operands);