From ce602c66b8ff487ca74f074120419a18c9f25871 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 23 Jun 2013 19:54:32 -0400 Subject: [PATCH] Add llvm instrumentation --- src/librustc/middle/trans/_match.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc/middle/trans/_match.rs b/src/librustc/middle/trans/_match.rs index a9a3c9317b4..f5bb075aafc 100644 --- a/src/librustc/middle/trans/_match.rs +++ b/src/librustc/middle/trans/_match.rs @@ -1738,6 +1738,7 @@ pub fn store_local(bcx: block, * Generates code for a local variable declaration like * `let ;` or `let = `. */ + let _icx = bcx.insn_ctxt("match::store_local"); let mut bcx = bcx; return match opt_init_expr { @@ -1812,6 +1813,7 @@ pub fn store_arg(mut bcx: block, * if the argument type is `T`, then `llval` is a `T*`). In some * cases, this code may zero out the memory `llval` points at. */ + let _icx = bcx.insn_ctxt("match::store_arg"); // We always need to cleanup the argument as we exit the fn scope. // Note that we cannot do it before for fear of a fn like