aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_general.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-02-20 18:47:41 +0000
committergingerBill <bill@gingerbill.org>2025-02-20 18:47:41 +0000
commitbf9f2e43bf46cc1898352fceb8ee90660dafbcac (patch)
treee3b799ea400316f7ab4c31b0f0e65368d7007881 /src/llvm_backend_general.cpp
parente8c38e74274b57a5de71d983ce9231bb7d27458e (diff)
Fix typeid size in LLVM
Diffstat (limited to 'src/llvm_backend_general.cpp')
-rw-r--r--src/llvm_backend_general.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp
index 49e2ba9e8..94a9023d1 100644
--- a/src/llvm_backend_general.cpp
+++ b/src/llvm_backend_general.cpp
@@ -1801,7 +1801,7 @@ gb_internal LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
return type;
}
- case Basic_typeid: return LLVMIntTypeInContext(m->ctx, 8*cast(unsigned)build_context.ptr_size);
+ case Basic_typeid: return LLVMIntTypeInContext(m->ctx, 64);
// Endian Specific Types
case Basic_i16le: return LLVMInt16TypeInContext(ctx);