Skip to content

Commit b871e25

Browse files
---
yaml --- r: 147263 b: refs/heads/try2 c: 184d394 h: refs/heads/master i: 147261: c4c2370 147259: ccc35e9 147255: c83e42e 147247: 7399d6c 147231: 66c511f 147199: 79413cb v: v3
1 parent ed450f5 commit b871e25

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 08bc0721415c54033dbd64934b2b3d10835fce36
8+
refs/heads/try2: 184d39414d779b620fec719cbd8308960634b277
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)