Skip to content

Commit 6bd1381

Browse files
---
yaml --- r: 90477 b: refs/heads/master c: 7eae649 h: refs/heads/master i: 90475: 1dbd2c3 v: v3
1 parent 0abe0c6 commit 6bd1381

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,5 +1,5 @@
11
---
2-
refs/heads/master: 184d39414d779b620fec719cbd8308960634b277
2+
refs/heads/master: 7eae649a015cd2e4c5764b2955edb7542410f1f1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/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)