diff options
| author | gingerBill <bill@gingerbill.org> | 2019-01-26 20:13:43 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-01-26 20:13:43 +0000 |
| commit | 44b959648c5b2ba7afc0b897760b3fa09aa876f6 (patch) | |
| tree | ea9b98ee8d6911d5a2e58dd5acdfdbe9920d814d /src/ir.cpp | |
| parent | a96bf082668cd8e453a1bc0330d4e862d2a8126a (diff) | |
Pass any and union "by pointer" to make the tag a pointer
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |