File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -179,10 +179,7 @@ impl<'tcx> crate::MirPass<'tcx> for UnreachableEnumBranching {
179179 // ```
180180 let otherwise_is_last_variant = !otherwise_is_empty_unreachable
181181 && allowed_variants. len ( ) == 1
182- // Despite the LLVM issue, we hope that small enum can still be transformed.
183- // This is valuable for both `a <= b` and `if let Some/Ok(v)`.
184- && ( targets. all_targets ( ) . len ( ) <= 3
185- || check_successors ( & body. basic_blocks , targets. otherwise ( ) ) ) ;
182+ && check_successors ( & body. basic_blocks , targets. otherwise ( ) ) ;
186183 let replace_otherwise_to_unreachable = otherwise_is_last_variant
187184 || ( !otherwise_is_empty_unreachable && allowed_variants. is_empty ( ) ) ;
188185
You can’t perform that action at this time.
0 commit comments