Modify type_set_offsets to patch minor bug

This commit is contained in:
gingerBill
2019-04-28 20:34:51 +01:00
parent 45fbc4e8c5
commit c61fd3a70a
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -2442,7 +2442,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
case_end;
case_ast_node(ot, OpaqueType, e);
Type *elem = strip_opaque_type(check_type(ctx, ot->type));
Type *elem = strip_opaque_type(check_type_expr(ctx, ot->type, nullptr));
*type = alloc_type_opaque(elem);
set_base_type(named_type, *type);
return true;