Skip to content

Commit 2ff67ed

Browse files
committed
Remove unused argument.
1 parent 02dff96 commit 2ff67ed

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/comp/middle/trans.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ fn make_generic_glue(@crate_ctxt cx, @ty.t t, str name,
12781278
fn_name = sanitize(fn_name);
12791279
auto llfn = decl_fastcall_fn(cx.llmod, fn_name, llfnty);
12801280

1281-
auto fcx = new_fn_ctxt(cx, fn_name, llfn);
1281+
auto fcx = new_fn_ctxt(cx, llfn);
12821282
auto bcx = new_top_block_ctxt(fcx);
12831283

12841284
auto re;
@@ -2656,7 +2656,7 @@ fn trans_for_each(@block_ctxt cx,
26562656
// FIXME: handle ty params properly.
26572657
let vec[ast.ty_param] ty_params = vec();
26582658

2659-
auto fcx = new_fn_ctxt(cx.fcx.ccx, s, lliterbody);
2659+
auto fcx = new_fn_ctxt(cx.fcx.ccx, lliterbody);
26602660
auto bcx = new_top_block_ctxt(fcx);
26612661

26622662
// FIXME: populate lllocals from llenv here.
@@ -3151,7 +3151,7 @@ fn trans_bind_thunk(@crate_ctxt cx,
31513151
let TypeRef llthunk_ty = get_pair_fn_ty(type_of(cx, incoming_fty));
31523152
let ValueRef llthunk = decl_fastcall_fn(cx.llmod, s, llthunk_ty);
31533153

3154-
auto fcx = new_fn_ctxt(cx, s, llthunk);
3154+
auto fcx = new_fn_ctxt(cx, llthunk);
31553155
auto bcx = new_top_block_ctxt(fcx);
31563156

31573157
auto llclosure = bcx.build.PointerCast(fcx.llenv, llclosure_ty);
@@ -4213,7 +4213,6 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
42134213
// - trans_args
42144214

42154215
fn new_fn_ctxt(@crate_ctxt cx,
4216-
str name,
42174216
ValueRef llfndecl) -> @fn_ctxt {
42184217

42194218
let ValueRef llretptr = llvm.LLVMGetParam(llfndecl, 0u);
@@ -4429,7 +4428,7 @@ fn trans_fn(@crate_ctxt cx, &ast._fn f, ast.def_id fid,
44294428
auto llfndecl = cx.item_ids.get(fid);
44304429
cx.item_names.insert(cx.path, llfndecl);
44314430

4432-
auto fcx = new_fn_ctxt(cx, cx.path, llfndecl);
4431+
auto fcx = new_fn_ctxt(cx, llfndecl);
44334432
create_llargs_for_fn_args(fcx, f.proto,
44344433
ty_self, ret_ty_of_fn(ann),
44354434
f.decl.inputs, ty_params);
@@ -4514,7 +4513,7 @@ fn trans_obj(@crate_ctxt cx, &ast._obj ob, ast.def_id oid,
45144513
id=f.id));
45154514
}
45164515

4517-
auto fcx = new_fn_ctxt(cx, cx.path, llctor_decl);
4516+
auto fcx = new_fn_ctxt(cx, llctor_decl);
45184517
create_llargs_for_fn_args(fcx, ast.proto_fn,
45194518
none[TypeRef], ret_ty_of_fn(ann),
45204519
fn_args, ty_params);
@@ -4644,7 +4643,7 @@ fn trans_tag_variant(@crate_ctxt cx, ast.def_id tag_id,
46444643
check (cx.item_ids.contains_key(variant.id));
46454644
let ValueRef llfndecl = cx.item_ids.get(variant.id);
46464645

4647-
auto fcx = new_fn_ctxt(cx, cx.path, llfndecl);
4646+
auto fcx = new_fn_ctxt(cx, llfndecl);
46484647
create_llargs_for_fn_args(fcx, ast.proto_fn,
46494648
none[TypeRef], ret_ty_of_fn(variant.ann),
46504649
fn_args, ty_params);

0 commit comments

Comments
 (0)