Skip to content

Commit 0abe0c6

Browse files
---
yaml --- r: 90476 b: refs/heads/master c: 184d394 h: refs/heads/master v: v3
1 parent 1dbd2c3 commit 0abe0c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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: 08bc0721415c54033dbd64934b2b3d10835fce36
2+
refs/heads/master: 184d39414d779b620fec719cbd8308960634b277
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,7 @@ pub fn alloca_maybe_zeroed(cx: @mut Block, ty: Type, name: &str, zero: bool) ->
15511551
return llvm::LLVMGetUndef(ty.ptr_to().to_ref());
15521552
}
15531553
}
1554+
debuginfo::clear_source_location(cx.fcx);
15541555
let p = Alloca(cx, ty, name);
15551556
if zero {
15561557
let b = cx.fcx.ccx.builder();
@@ -1567,6 +1568,7 @@ pub fn arrayalloca(cx: @mut Block, ty: Type, v: ValueRef) -> ValueRef {
15671568
return llvm::LLVMGetUndef(ty.to_ref());
15681569
}
15691570
}
1571+
debuginfo::clear_source_location(cx.fcx);
15701572
return ArrayAlloca(cx, ty, v);
15711573
}
15721574

@@ -1810,6 +1812,7 @@ pub fn finish_fn(fcx: @mut FunctionContext, last_bcx: @mut Block) {
18101812
None => last_bcx
18111813
};
18121814
build_return_block(fcx, ret_cx);
1815+
debuginfo::clear_source_location(fcx);
18131816
fcx.cleanup();
18141817
}
18151818

0 commit comments

Comments
 (0)