fix crash on field access of opaque type

This commit is contained in:
Andrew Kelley
2017-10-25 23:18:18 -04:00
parent 5f28a9d238
commit 300c83d893
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -2804,7 +2804,6 @@ static bool is_container(TypeTableEntry *type_entry) {
switch (type_entry->id) {
case TypeTableEntryIdInvalid:
case TypeTableEntryIdVar:
case TypeTableEntryIdOpaque:
zig_unreachable();
case TypeTableEntryIdStruct:
case TypeTableEntryIdEnum:
@@ -2831,6 +2830,7 @@ static bool is_container(TypeTableEntry *type_entry) {
case TypeTableEntryIdBoundFn:
case TypeTableEntryIdEnumTag:
case TypeTableEntryIdArgTuple:
case TypeTableEntryIdOpaque:
return false;
}
zig_unreachable();