commit 517eb73b23ee77672abe6b20b79b6648cd3ff879 (tree)
parent 4552ccb6856a84bb88badb265c43114ff57bd90c
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 16 Jul 2022 17:03:05 -0700
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
@@ -2500,7 +2500,7 @@ pub const DeclGen = struct {
fn lowerType(dg: *DeclGen, t: Type) Allocator.Error!*const llvm.Type {
const llvm_ty = try lowerTypeInner(dg, t);
- if (std.debug.runtime_safety) check: {
+ if (std.debug.runtime_safety and false) check: {
if (t.zigTypeTag() == .Opaque) break :check;
if (!t.hasRuntimeBits()) break :check;
if (!llvm_ty.isSized().toBool()) break :check;