Skip to content

Commit 74c7f9a

Browse files
---
yaml --- r: 85454 b: refs/heads/dist-snap c: 44557e7 h: refs/heads/master v: v3
1 parent 7cbc0c7 commit 74c7f9a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 5c9d7c2072ef93adf9912643d025e48ac832c3a6
9+
refs/heads/dist-snap: 44557e7a3372556284ea8ee062a258b0d4377b86
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/trans/base.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,10 @@ pub fn trans_closure(ccx: @mut CrateContext,
18591859
set_fixed_stack_segment(fcx.llfn);
18601860
}
18611861

1862+
if ccx.sess.opts.debuginfo && fcx_has_nonzero_span(fcx) {
1863+
debuginfo::create_function_metadata(fcx);
1864+
}
1865+
18621866
// Create the first basic block in the function and keep a handle on it to
18631867
// pass to finish_fn later.
18641868
let bcx_top = fcx.entry_bcx.unwrap();
@@ -1929,12 +1933,7 @@ pub fn trans_fn(ccx: @mut CrateContext,
19291933
id,
19301934
attrs,
19311935
output_type,
1932-
|fcx| {
1933-
if ccx.sess.opts.debuginfo
1934-
&& fcx_has_nonzero_span(fcx) {
1935-
debuginfo::create_function_metadata(fcx);
1936-
}
1937-
});
1936+
|_fcx| { });
19381937
}
19391938

19401939
fn insert_synthetic_type_entries(bcx: @mut Block,

0 commit comments

Comments
 (0)