Skip to content

Commit b50983c

Browse files
committed
---
yaml --- r: 3951 b: refs/heads/master c: 6e114a3 h: refs/heads/master i: 3949: 47c4727 3947: a72867b 3943: b0e25b2 3935: 3fa5ce0 v: v3
1 parent 4e25424 commit b50983c

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,2 +1,2 @@
11
---
2-
refs/heads/master: fafb42e6b1f0dd3022d33e235a4229060d2b2d1d
2+
refs/heads/master: 6e114a367f97c3388240746ca506b1e34416a71d

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6743,6 +6743,9 @@ fn alloc_ty(&@block_ctxt cx, &ty::t t) -> result {
67436743
fn alloc_local(&@block_ctxt cx, &@ast::local local) -> result {
67446744
auto t = node_id_type(cx.fcx.lcx.ccx, local.node.id);
67456745
auto r = alloc_ty(cx, t);
6746+
if (cx.fcx.lcx.ccx.sess.get_opts().debuginfo) {
6747+
llvm::LLVMSetValueName(r.val, str::buf(local.node.ident));
6748+
}
67466749
r.bcx.fcx.lllocals.insert(local.node.id, r.val);
67476750
ret r;
67486751
}

0 commit comments

Comments
 (0)