Skip to content

Commit e3ef750

Browse files
author
James Miller
committed
Fix merge fallout
1 parent fb6dc95 commit e3ef750

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

src/librustc/middle/trans/cabi.rs

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ impl FnType {
9292

9393
pub fn build_shim_ret(&self, bcx: block, arg_tys: &[Type], ret_def: bool,
9494
llargbundle: ValueRef, llretval: ValueRef) {
95-
for vec::eachi(self.attrs) |i, a| {
9695
for self.attrs.iter().enumerate().advance |(i, a)| {
9796
match *a {
9897
option::Some(attr) => {

src/librustc/middle/trans/cabi_x86.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl ABIInfo for X86_ABIInfo {
6464
} else if !ret_def {
6565
ret_ty = LLVMType {
6666
cast: false,
67-
ty: T_void()
67+
ty: Type::void()
6868
};
6969
}
7070

src/librustc/middle/trans/closure.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,11 @@ pub fn build_closure(bcx0: block,
300300
let ret_true = match bcx.fcx.loop_ret {
301301
Some((_, retptr)) => retptr,
302302
None => match bcx.fcx.llretptr {
303-
None => C_null(T_ptr(T_nil())),
304-
Some(retptr) => retptr,
303+
None => C_null(Type::nil().ptr_to()),
304+
Some(retptr) => PointerCast(bcx, retptr, Type::nil().ptr_to()),
305305
}
306306
};
307-
let ret_casted = PointerCast(bcx, ret_true, Type::nil().ptr_to());
308-
let ret_datum = Datum {val: ret_casted, ty: ty::mk_nil(),
307+
let ret_datum = Datum {val: ret_true, ty: ty::mk_nil(),
309308
mode: ByRef(ZeroMem)};
310309
env_vals.push(EnvValue {action: EnvRef,
311310
datum: ret_datum});

src/librustc/middle/trans/glue.rs

-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ pub fn make_visit_glue(bcx: block, v: ValueRef, t: ty::t) {
370370
pub fn make_free_glue(bcx: block, v: ValueRef, t: ty::t) {
371371
// NB: v0 is an *alias* of type t here, not a direct value.
372372
let _icx = push_ctxt("make_free_glue");
373-
let ccx = bcx.ccx();
374373
let bcx = match ty::get(t).sty {
375374
ty::ty_box(body_mt) => {
376375
let v = Load(bcx, v);

src/librustc/middle/trans/monomorphize.rs

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ pub fn monomorphic_fn(ccx: @mut CrateContext,
6161

6262
assert!(real_substs.tps.iter().all(|t| !ty::type_needs_infer(*t)));
6363
let _icx = push_ctxt("monomorphic_fn");
64-
let _icx = ccx.insn_ctxt("monomorphic_fn");
6564
let mut must_cast = false;
6665
let substs = vec::map(real_substs.tps, |t| {
6766
match normalize_for_monomorphization(ccx.tcx, *t) {

src/librustc/middle/trans/type_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,5 @@ pub fn llvm_type_name(cx: &CrateContext,
339339

340340
pub fn type_of_dtor(ccx: &mut CrateContext, self_ty: ty::t) -> Type {
341341
let self_ty = type_of(ccx, self_ty).ptr_to();
342-
Type::func([self_ty], Type::void())
342+
Type::func([self_ty], &Type::void())
343343
}

0 commit comments

Comments
 (0)