Skip to content

Commit d8dd53b

Browse files
author
James Miller
committed
---
yaml --- r: 66137 b: refs/heads/master c: e3ef750 h: refs/heads/master i: 66135: 3195bd0 v: v3
1 parent bf48f8f commit d8dd53b

File tree

7 files changed

+6
-10
lines changed

7 files changed

+6
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fb6dc957d6fcd64f01fbaf43ed9b059ae695e5b4
2+
refs/heads/master: e3ef7504e9496f72820af55f8b9838ec0f54d9f0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/librustc/middle/trans/cabi.rs

Lines changed: 0 additions & 1 deletion
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) => {

trunk/src/librustc/middle/trans/cabi_x86.rs

Lines changed: 1 addition & 1 deletion
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

trunk/src/librustc/middle/trans/closure.rs

Lines changed: 3 additions & 4 deletions
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});

trunk/src/librustc/middle/trans/glue.rs

Lines changed: 0 additions & 1 deletion
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);

trunk/src/librustc/middle/trans/monomorphize.rs

Lines changed: 0 additions & 1 deletion
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) {

trunk/src/librustc/middle/trans/type_of.rs

Lines changed: 1 addition & 1 deletion
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)