-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for enums on the match expression
Add initial support for MatchExpr there is an issue once LTO is enabled where it hits and ICE: /home/../rust/execute/torture/match1.rs:48:1: internal compiler error: in find_taken_edge_switch_expr, at tree-cfg.c:2481 0x121bc38 find_taken_edge_switch_expr(gswitch const*, tree_node*) ../../gccrs/gcc/tree-cfg.c:2481 0x121b925 find_taken_edge(basic_block_def*, tree_node*) ../../gccrs/gcc/tree-cfg.c:2377 0x147e7bb process_bb ../../gccrs/gcc/tree-ssa-sccvn.c:7300 0x14809a6 do_rpo_vn ../../gccrs/gcc/tree-ssa-sccvn.c:7777 0x1481a7c execute ../../gccrs/gcc/tree-ssa-sccvn.c:8045 I believe this might be due to the qualifier type used within the enum type creating an enumeral type with all variants of it might fix this and or moving to the qual_union_type instead of a big union. Fixes #190
- Loading branch information
Showing
7 changed files
with
543 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.