aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-29 09:30:22 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-29 09:30:22 -0400
commit8f682efbc5abf4d631f60310f95b998c6fe44669 (patch)
treebbb70e115d7cb66f7a29e63128ca6fb19210f599 /src/analyze.cpp
parent1116d82197b46010b80e0e4454abc8881a642947 (diff)
downloadzig-8f682efbc5abf4d631f60310f95b998c6fe44669.tar.gz
zig-8f682efbc5abf4d631f60310f95b998c6fe44669.zip
pass all tests without triggering assertions
fixes tests when targeting darwin
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}