We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 828461b commit 674f196Copy full SHA for 674f196
compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -37,12 +37,9 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
37
/// `funclet_bb` member if it is not `None`.
38
fn funclet<'b, Bx: BuilderMethods<'a, 'tcx>>(
39
&self,
40
- fx: &'b mut FunctionCx<'a, 'tcx, Bx>,
+ fx: &'b FunctionCx<'a, 'tcx, Bx>,
41
) -> Option<&'b Bx::Funclet> {
42
- match self.funclet_bb {
43
- Some(funcl) => fx.funclets[funcl].as_ref(),
44
- None => None,
45
- }
+ self.funclet_bb.and_then(|funcl| fx.funclets[funcl].as_ref())
46
}
47
48
fn lltarget<Bx: BuilderMethods<'a, 'tcx>>(
0 commit comments