Skip to content

Commit d4bfaaf

Browse files
---
yaml --- r: 88648 b: refs/heads/snap-stage3 c: 7eae649 h: refs/heads/master v: v3
1 parent 69efd50 commit d4bfaaf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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: deeca5d586bfaa4aa60246f671a8d611d38f6248
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 184d39414d779b620fec719cbd8308960634b277
4+
refs/heads/snap-stage3: 7eae649a015cd2e4c5764b2955edb7542410f1f1
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/debuginfo.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,14 @@ fn populate_scope_map(cx: &mut CrateContext,
22482248
})
22492249
}
22502250

2251-
walk_block(cx, fn_entry_block, &mut scope_stack, scope_map);
2251+
// Clang creates separate scope functions bodies, so let's do this too
2252+
with_new_scope(cx,
2253+
fn_entry_block.span,
2254+
&mut scope_stack,
2255+
scope_map,
2256+
|cx, scope_stack, scope_map| {
2257+
walk_block(cx, fn_entry_block, scope_stack, scope_map);
2258+
});
22522259

22532260
// local helper functions for walking the AST.
22542261
fn with_new_scope(cx: &mut CrateContext,

0 commit comments

Comments
 (0)