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/check_stmt.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 5b30ebee3..3262aea5d 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -980,7 +980,6 @@ void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { } if (is_ptr && - !is_type_any(type_deref(x.type)) && cc->list.count == 1 && case_type != nullptr) { case_type = alloc_type_pointer(case_type); -- cgit v1.2.3