diff --git a/src/aro/Type.zig b/src/aro/Type.zig index 725cbeec..76c9a545 100644 --- a/src/aro/Type.zig +++ b/src/aro/Type.zig @@ -1056,7 +1056,7 @@ pub fn bitSizeof(ty: Type, comp: *const Compilation) ?u64 { } pub fn alignable(ty: Type) bool { - return ty.isArray() or !ty.hasIncompleteSize() or ty.is(.void); + return (ty.isArray() or !ty.hasIncompleteSize() or ty.is(.void)) and !ty.is(.invalid); } /// Get the alignment of a type