Skip to content

Commit 142ff3b

Browse files
committed
rustc: Translate functions only once
1 parent 1b9dbcc commit 142ff3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7076,6 +7076,7 @@ fn trans_fn(@local_ctxt cx, &span sp, &ast::_fn f, ValueRef llfndecl,
70767076
ast::node_id id) {
70777077
if !cx.ccx.sess.get_opts().stats {
70787078
trans_fn_inner(cx, sp, f, llfndecl, ty_self, ty_params, id);
7079+
ret;
70797080
}
70807081

70817082
auto start = time::get_time();

0 commit comments

Comments
 (0)