Skip to content

Commit 4ecf3e2

Browse files
committed
---
yaml --- r: 109862 b: refs/heads/master c: 8f385fc h: refs/heads/master v: v3
1 parent ca0acea commit 4ecf3e2

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
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: a2290ccbc567fade350ea9a10d83f03527dea647
2+
refs/heads/master: 8f385fc2e01c14cea8323e3dba86518bed306a9a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

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

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -512,48 +512,6 @@ pub fn trans_lang_call<'a>(
512512
dest)
513513
}
514514

515-
pub fn trans_lang_call_with_type_params<'a>(
516-
bcx: &'a Block<'a>,
517-
did: ast::DefId,
518-
args: &[ValueRef],
519-
type_params: &[ty::t],
520-
dest: expr::Dest)
521-
-> &'a Block<'a> {
522-
let fty;
523-
if did.krate == ast::LOCAL_CRATE {
524-
fty = ty::node_id_to_type(bcx.tcx(), did.node);
525-
} else {
526-
fty = csearch::get_type(bcx.tcx(), did).ty;
527-
}
528-
529-
return callee::trans_call_inner(
530-
bcx,
531-
None,
532-
fty,
533-
|bcx, _| {
534-
let callee =
535-
trans_fn_ref_with_vtables_to_callee(bcx, did, 0,
536-
type_params,
537-
None);
538-
539-
let new_llval;
540-
match callee.data {
541-
Fn(llfn) => {
542-
let substituted = ty::subst_tps(callee.bcx.tcx(),
543-
type_params,
544-
None,
545-
fty);
546-
let llfnty = type_of::type_of(callee.bcx.ccx(),
547-
substituted);
548-
new_llval = PointerCast(callee.bcx, llfn, llfnty);
549-
}
550-
_ => fail!()
551-
}
552-
Callee { bcx: callee.bcx, data: Fn(new_llval) }
553-
},
554-
ArgVals(args), Some(dest)).bcx;
555-
}
556-
557515
pub fn trans_call_inner<'a>(
558516
bcx: &'a Block<'a>,
559517
call_info: Option<NodeInfo>,

0 commit comments

Comments
 (0)