Skip to content

Commit f103ea4

Browse files
Remove unecessary logic.
1 parent f11721a commit f103ea4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/librustc_trans/base.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,7 @@ pub fn trans_ctor_shim<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
662662
}
663663
bcx.ret(load)
664664
} else {
665-
let llty = fcx.fn_ty.ret.original_ty;
666-
let retval = if llty == Type::i1(fcx.ccx) {
667-
let val = bcx.load_range_assert(dest, 0, 2, llvm::False);
668-
bcx.trunc(val, llty)
669-
} else {
670-
bcx.load(dest)
671-
};
672-
bcx.ret(retval)
665+
bcx.ret(bcx.load(dest))
673666
}
674667
} else {
675668
bcx.ret_void();

0 commit comments

Comments
 (0)