Skip to content

Commit 3e2a5bd

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171235 b: refs/heads/batch c: 865aabb h: refs/heads/master i: 171233: 47cbfc6 171231: aa82600 v: v3
1 parent b68d3e4 commit 3e2a5bd

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 8a6d7a68b17542f67086d014720d13e3dc320d51
32+
refs/heads/batch: 865aabb6622c44ab47c616c244642a85ce0c4719
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/librustc_trans/trans/callee.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ pub struct MethodData {
6666
}
6767

6868
pub enum CalleeData<'tcx> {
69-
Closure(Datum<'tcx, Lvalue>),
70-
7169
// Constructor for enum variant/tuple-like-struct
7270
// i.e. Some, Ok
7371
NamedTupleConstructor(subst::Substs<'tcx>, ty::Disr),
@@ -681,16 +679,6 @@ pub fn trans_call_inner<'a, 'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
681679
TraitItem(d) => {
682680
(d.llfn, None, Some(d.llself))
683681
}
684-
Closure(d) => {
685-
// Closures are represented as (llfn, llclosure) pair:
686-
// load the requisite values out.
687-
let pair = d.to_llref();
688-
let llfn = GEPi(bcx, pair, &[0u, abi::FAT_PTR_ADDR]);
689-
let llfn = Load(bcx, llfn);
690-
let llenv = GEPi(bcx, pair, &[0u, abi::FAT_PTR_EXTRA]);
691-
let llenv = Load(bcx, llenv);
692-
(llfn, Some(llenv), None)
693-
}
694682
Intrinsic(node, substs) => {
695683
assert!(abi == synabi::RustIntrinsic);
696684
assert!(dest.is_some());

0 commit comments

Comments
 (0)