From 142ff3bb4ee0c58efc9185505695681468df3e05 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 20 Jul 2011 18:43:05 -0700 Subject: [PATCH] rustc: Translate functions only once --- src/comp/middle/trans.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f03ff80f74e..691339a652c 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -7076,6 +7076,7 @@ fn trans_fn(@local_ctxt cx, &span sp, &ast::_fn f, ValueRef llfndecl, ast::node_id id) { if !cx.ccx.sess.get_opts().stats { trans_fn_inner(cx, sp, f, llfndecl, ty_self, ty_params, id); + ret; } auto start = time::get_time();