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.
This commit is contained in:
Andrew Kelley
2022-07-14 23:24:57 -07:00
parent 8c14d170b5
commit 040cb585e8
3 changed files with 75 additions and 37 deletions

View File

@@ -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 {