codegen_llvm: remove explicit returns

This commit is contained in:
ljedrz 2018-10-08 17:00:30 +02:00
parent b168e5f125
commit a0fc2e6ddc
3 changed files with 4 additions and 3 deletions

View file

@ -1194,7 +1194,7 @@ impl Builder<'a, 'll, 'tcx> {
})
.collect();
return Cow::Owned(casted_args);
Cow::Owned(casted_args)
}
pub fn lifetime_start(&self, ptr: &'ll Value, size: Size) {

View file

@ -771,5 +771,6 @@ fn declare_intrinsic(cx: &CodegenCx<'ll, '_>, key: &str) -> Option<&'ll Value> {
ifn!("llvm.dbg.declare", fn(Type::metadata(cx), Type::metadata(cx)) -> void);
ifn!("llvm.dbg.value", fn(Type::metadata(cx), t_i64, Type::metadata(cx)) -> void);
}
return None;
None
}

View file

@ -972,7 +972,7 @@ fn get_rust_try_fn<'ll, 'tcx>(
let output = tcx.types.i32;
let rust_try = gen_fn(cx, "__rust_try", vec![fn_ty, i8p, i8p], output, codegen);
cx.rust_try_fn.set(Some(rust_try));
return rust_try
rust_try
}
fn span_invalid_monomorphization_error(a: &Session, b: Span, c: &str) {