Skip to content

Commit b01b6e1

Browse files
Fix errors introduced during rebase
1 parent 21f86ba commit b01b6e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: src/librustc_trans/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ fn try_intrinsic<'a, 'tcx>(
694694
bcx.call(func, &[data], None);
695695
bcx.store(C_null(Type::i8p(&bcx.ccx)), dest, None);
696696
} else if wants_msvc_seh(bcx.sess()) {
697-
trans_msvc_try(bcx, fcx, func, data, local_ptr, dest);
697+
trans_msvc_try(bcx, ccx, func, data, local_ptr, dest);
698698
} else {
699699
trans_gnu_try(bcx, ccx, func, data, local_ptr, dest);
700700
}

Diff for: src/librustc_trans/mir/block.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
209209
};
210210
let llslot = match op.val {
211211
Immediate(_) | Pair(..) => {
212-
let llscratch = bcx.fcx().alloca(ret.original_ty, "ret");
212+
let llscratch = bcx.alloca(ret.original_ty, "ret");
213213
self.store_operand(&bcx, llscratch, op, None);
214214
llscratch
215215
}
@@ -651,7 +651,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
651651
let (mut llval, by_ref) = match op.val {
652652
Immediate(_) | Pair(..) => {
653653
if arg.is_indirect() || arg.cast.is_some() {
654-
let llscratch = bcx.fcx().alloca(arg.original_ty, "arg");
654+
let llscratch = bcx.alloca(arg.original_ty, "arg");
655655
self.store_operand(bcx, llscratch, op, None);
656656
(llscratch, true)
657657
} else {

Diff for: src/librustc_trans/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ fn arg_local_refs<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
519519
// doesn't actually strip the offset when splitting the closure
520520
// environment into its components so it ends up out of bounds.
521521
let env_ptr = if !env_ref {
522-
let alloc = bcx.fcx().alloca(common::val_ty(llval), "__debuginfo_env_ptr");
522+
let alloc = bcx.alloca(common::val_ty(llval), "__debuginfo_env_ptr");
523523
bcx.store(llval, alloc, None);
524524
alloc
525525
} else {

0 commit comments

Comments
 (0)