Skip to content

Commit ce602c6

Browse files
committed
Add llvm instrumentation
1 parent 0e81072 commit ce602c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/middle/trans/_match.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ pub fn store_local(bcx: block,
17381738
* Generates code for a local variable declaration like
17391739
* `let <pat>;` or `let <pat> = <opt_init_expr>`.
17401740
*/
1741+
let _icx = bcx.insn_ctxt("match::store_local");
17411742
let mut bcx = bcx;
17421743

17431744
return match opt_init_expr {
@@ -1812,6 +1813,7 @@ pub fn store_arg(mut bcx: block,
18121813
* if the argument type is `T`, then `llval` is a `T*`). In some
18131814
* cases, this code may zero out the memory `llval` points at.
18141815
*/
1816+
let _icx = bcx.insn_ctxt("match::store_arg");
18151817

18161818
// We always need to cleanup the argument as we exit the fn scope.
18171819
// Note that we cannot do it before for fear of a fn like

0 commit comments

Comments
 (0)