Skip to content

Commit c96d7a9

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 169881 b: refs/heads/auto c: 865aabb h: refs/heads/master i: 169879: 76235da v: v3
1 parent 711365e commit c96d7a9

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 8a6d7a68b17542f67086d014720d13e3dc320d51
13+
refs/heads/auto: 865aabb6622c44ab47c616c244642a85ce0c4719
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)