aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
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) {