From 8f682efbc5abf4d631f60310f95b998c6fe44669 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 29 Aug 2017 09:30:22 -0400 Subject: pass all tests without triggering assertions fixes tests when targeting darwin --- src/analyze.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 5fcbd92142..c6e0c28b90 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4812,6 +4812,8 @@ uint32_t get_abi_alignment(CodeGen *g, TypeTableEntry *type_entry) { return type_entry->data.enumeration.abi_alignment; } else if (type_entry->id == TypeTableEntryIdUnion) { zig_panic("TODO"); + } else if (type_entry->id == TypeTableEntryIdOpaque) { + return 1; } else { return LLVMABIAlignmentOfType(g->target_data_ref, type_entry->type_ref); } -- cgit v1.2.3