Skip to content

Commit

Permalink
codegen_llvm: remove explicit returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Oct 8, 2018
1 parent b168e5f commit a0fc2e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_codegen_llvm/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a0fc2e6

Please sign in to comment.