From 44b959648c5b2ba7afc0b897760b3fa09aa876f6 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 26 Jan 2019 20:13:43 +0000 Subject: Pass any and union "by pointer" to make the tag a pointer --- src/ir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 627985857..5d2f923aa 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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) { -- cgit v1.2.3