aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-14 23:09:12 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-14 23:09:31 -0500
commitd6e0d82c328b4f9d733364382cce0941a601e91a (patch)
treeba5848ece64d705fa436fa4924b8e59a1a9a3dce /src/analyze.cpp
parentd5bbd748711abc82272199869cf70faf1ea30f52 (diff)
downloadzig-d6e0d82c328b4f9d733364382cce0941a601e91a.tar.gz
zig-d6e0d82c328b4f9d733364382cce0941a601e91a.zip
translate-c: back to *c_void for opaque types
See #1059
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 55deafb3a8..1917784511 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -437,7 +437,7 @@ ZigType *get_pointer_to_type_extra(CodeGen *g, ZigType *child_type, bool is_cons
// move this to a parameter
bool allow_zero = (ptr_len == PtrLenC);
assert(!type_is_invalid(child_type));
- assert(ptr_len != PtrLenUnknown || child_type->id != ZigTypeIdOpaque);
+ assert(ptr_len == PtrLenSingle || child_type->id != ZigTypeIdOpaque);
if (byte_alignment != 0) {
uint32_t abi_alignment = get_abi_alignment(g, child_type);