authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-16 17:03:05-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-18 17:11:34-07:00
log517eb73b23ee77672abe6b20b79b6648cd3ff879
treed532f34a1075542dabebedbbc2d97972962b8076
parent4552ccb6856a84bb88badb265c43114ff57bd90c

LLVM: disable the ABI size safety check

There still more instances of this check being tripped during behavior tests that we need to fix before we can enable this.

1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen/llvm.zig+1-1
...@@ -2500,7 +2500,7 @@ pub const DeclGen = struct {...@@ -2500,7 +2500,7 @@ pub const DeclGen = struct {
25002500
2501 fn lowerType(dg: *DeclGen, t: Type) Allocator.Error!*const llvm.Type {2501 fn lowerType(dg: *DeclGen, t: Type) Allocator.Error!*const llvm.Type {
2502 const llvm_ty = try lowerTypeInner(dg, t);2502 const llvm_ty = try lowerTypeInner(dg, t);
2503 if (std.debug.runtime_safety) check: {2503 if (std.debug.runtime_safety and false) check: {
2504 if (t.zigTypeTag() == .Opaque) break :check;2504 if (t.zigTypeTag() == .Opaque) break :check;
2505 if (!t.hasRuntimeBits()) break :check;2505 if (!t.hasRuntimeBits()) break :check;
2506 if (!llvm_ty.isSized().toBool()) break :check;2506 if (!llvm_ty.isSized().toBool()) break :check;