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/check_stmt.cpp | |
| parent | a96bf082668cd8e453a1bc0330d4e862d2a8126a (diff) | |
Pass any and union "by pointer" to make the tag a pointer
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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); |