aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-14 23:24:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-14 23:24:57 -0700
commit040cb585e88583cba8a15f30eea07bfd2f135515 (patch)
tree1a7be73e85d8a92d09f148924b219cac1d59f55d /src/codegen/llvm
parent8c14d170b579e078ff961973e4d28a4946df36d7 (diff)
downloadzig-040cb585e88583cba8a15f30eea07bfd2f135515.tar.gz
zig-040cb585e88583cba8a15f30eea07bfd2f135515.zip
LLVM: fix ABI size of optional and error union types
Previously, the Zig ABI size and LLVM ABI size of these types disagreed sometimes. This code also corrects the logging messages to not trigger LLVM assertions.
Diffstat (limited to 'src/codegen/llvm')
-rw-r--r--src/codegen/llvm/bindings.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig
index 3279f052b2..6cd5e41b10 100644
--- a/src/codegen/llvm/bindings.zig
+++ b/src/codegen/llvm/bindings.zig
@@ -304,6 +304,9 @@ pub const Type = opaque {
pub const isOpaqueStruct = LLVMIsOpaqueStruct;
extern fn LLVMIsOpaqueStruct(StructTy: *const Type) Bool;
+
+ pub const isSized = LLVMTypeIsSized;
+ extern fn LLVMTypeIsSized(Ty: *const Type) Bool;
};
pub const Module = opaque {