Pass any and union "by pointer" to make the tag a pointer

This commit is contained in:
gingerBill
2019-01-26 20:13:43 +00:00
parent a96bf08266
commit 44b959648c
5 changed files with 17 additions and 43 deletions
+2 -1
View File
@@ -8652,7 +8652,8 @@ void ir_build_stmt_internal(irProcedure *proc, Ast *node) {
ir_start_block(proc, body);
if (cc->list.count == 1) {
bool any_or_not_ptr = is_type_any(type_deref(parent_type)) || !is_parent_ptr;
// bool any_or_not_ptr = is_type_any(type_deref(parent_type)) || !is_parent_ptr;
bool any_or_not_ptr = !is_parent_ptr;
Type *ct = case_entity->type;
if (any_or_not_ptr) {