aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorRaul Leal <raulgrell@gmail.com>2017-08-31 21:49:37 +0000
committerAndrew Kelley <superjoe30@gmail.com>2017-08-31 18:01:09 -0400
commite93ece7514dc9199523f71efe0ac480ef143985e (patch)
treeb213ec5714b8b916e5ab806921f4a66ad0b0d6c9 /src/codegen.cpp
parentc42e809f132d91fca1f96da2ecff7d78e1085c3f (diff)
downloadzig-e93ece7514dc9199523f71efe0ac480ef143985e.tar.gz
zig-e93ece7514dc9199523f71efe0ac480ef143985e.zip
Opaque ptr patch
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index ef8169b789..a53174ab89 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -5293,12 +5293,12 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) {
}
}
case TypeTableEntryIdStruct:
+ case TypeTableEntryIdOpaque:
{
// TODO add to table of structs we need to declare
buf_init_from_buf(out_buf, &type_entry->name);
return;
}
- case TypeTableEntryIdOpaque:
case TypeTableEntryIdArray:
case TypeTableEntryIdErrorUnion:
case TypeTableEntryIdPureError: