Skip to content

Commit 69efd50

Browse files
---
yaml --- r: 88647 b: refs/heads/snap-stage3 c: 184d394 h: refs/heads/master i: 88645: 18d3ee6 88643: 43f233d 88639: 8c89ce4 v: v3
1 parent b71a87e commit 69efd50

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,7 +1,7 @@
11
---
22
refs/heads/master: deeca5d586bfaa4aa60246f671a8d611d38f6248
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 08bc0721415c54033dbd64934b2b3d10835fce36
4+
refs/heads/snap-stage3: 184d39414d779b620fec719cbd8308960634b277
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)