Opaque ptr patch

This commit is contained in:
Raul Leal 2017-08-31 21:49:37 +00:00 committed by Andrew Kelley
parent c42e809f13
commit e93ece7514

View File

@ -5293,12 +5293,12 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) {
} }
} }
case TypeTableEntryIdStruct: case TypeTableEntryIdStruct:
case TypeTableEntryIdOpaque:
{ {
// TODO add to table of structs we need to declare // TODO add to table of structs we need to declare
buf_init_from_buf(out_buf, &type_entry->name); buf_init_from_buf(out_buf, &type_entry->name);
return; return;
} }
case TypeTableEntryIdOpaque:
case TypeTableEntryIdArray: case TypeTableEntryIdArray:
case TypeTableEntryIdErrorUnion: case TypeTableEntryIdErrorUnion:
case TypeTableEntryIdPureError: case TypeTableEntryIdPureError: