Disable using giant packed struct for type info table for the time being

This commit is contained in:
gingerBill
2023-10-27 13:03:21 +01:00
parent 0a492acaa1
commit bc0fa1240b
3 changed files with 62 additions and 40 deletions

View File

@@ -94,6 +94,9 @@ gb_internal LLVMValueRef llvm_const_cast(LLVMValueRef val, LLVMTypeRef dst) {
LLVMTypeKind kind = LLVMGetTypeKind(dst);
switch (kind) {
case LLVMPointerTypeKind:
if (LB_USE_NEW_PASS_SYSTEM) {
return val;
}
return LLVMConstPointerCast(val, dst);
case LLVMStructTypeKind:
// GB_PANIC("%s -> %s", LLVMPrintValueToString(val), LLVMPrintTypeToString(dst));