Skip to content

Commit d2f19c4

Browse files
committed
---
yaml --- r: 147688 b: refs/heads/try2 c: 21e4e41 h: refs/heads/master v: v3
1 parent fdcf2e9 commit d2f19c4

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c010d08cd517119b870476ba7b37ab52b075385d
8+
refs/heads/try2: 21e4e410a955014cca789550c2e2ee091fe67a96
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,8 @@ pub fn trans_closure(ccx: @CrateContext,
19141914
_attributes: &[ast::Attribute],
19151915
output_type: ty::t,
19161916
maybe_load_env: |@FunctionContext|) {
1917-
ccx.stats.n_closures += 1;
1917+
ccx.stats.n_closures.set(ccx.stats.n_closures.get() + 1);
1918+
19181919
let _icx = push_ctxt("trans_closure");
19191920
set_uwtable(llfndecl);
19201921

@@ -3253,7 +3254,7 @@ pub fn trans_crate(sess: session::Session,
32533254
println!("n_fns: {}", ccx.stats.n_fns.get());
32543255
println!("n_monos: {}", ccx.stats.n_monos.get());
32553256
println!("n_inlines: {}", ccx.stats.n_inlines.get());
3256-
println!("n_closures: {}", ccx.stats.n_closures);
3257+
println!("n_closures: {}", ccx.stats.n_closures.get());
32573258
println("fn stats:");
32583259

32593260
ccx.stats.fn_stats.sort_by(|&(_, _, insns_a), &(_, _, insns_b)| insns_b.cmp(&insns_a));

branches/try2/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct Stats {
133133
n_fns: Cell<uint>,
134134
n_monos: Cell<uint>,
135135
n_inlines: Cell<uint>,
136-
n_closures: uint,
136+
n_closures: Cell<uint>,
137137
n_llvm_insns: uint,
138138
llvm_insn_ctxt: ~[~str],
139139
llvm_insns: HashMap<~str, uint>,

branches/try2/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl CrateContext {
218218
n_fns: Cell::new(0u),
219219
n_monos: Cell::new(0u),
220220
n_inlines: Cell::new(0u),
221-
n_closures: 0u,
221+
n_closures: Cell::new(0u),
222222
n_llvm_insns: 0u,
223223
llvm_insn_ctxt: ~[],
224224
llvm_insns: HashMap::new(),

0 commit comments

Comments
 (0)