Skip to content

Commit 624f530

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 168856 b: refs/heads/snap-stage3 c: 865aabb h: refs/heads/master v: v3
1 parent 5c0f8bc commit 624f530

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5e21e17d9638d14af41e27e5ca9a21c8a1bc0170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8a6d7a68b17542f67086d014720d13e3dc320d51
4+
refs/heads/snap-stage3: 865aabb6622c44ab47c616c244642a85ce0c4719
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)