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
-1
View File
@@ -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);