We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e25424 commit b50983cCopy full SHA for b50983c
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: fafb42e6b1f0dd3022d33e235a4229060d2b2d1d
+refs/heads/master: 6e114a367f97c3388240746ca506b1e34416a71d
trunk/src/comp/middle/trans.rs
@@ -6743,6 +6743,9 @@ fn alloc_ty(&@block_ctxt cx, &ty::t t) -> result {
6743
fn alloc_local(&@block_ctxt cx, &@ast::local local) -> result {
6744
auto t = node_id_type(cx.fcx.lcx.ccx, local.node.id);
6745
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
+ }
6749
r.bcx.fcx.lllocals.insert(local.node.id, r.val);
6750
ret r;
6751
}
0 commit comments