Skip to content

Commit 59c9e6c

Browse files
committed
Guard unguarded log calls that snuck in. Shave 5s off building rustc.
1 parent b81aa05 commit 59c9e6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/boot/me/trans.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,8 +1344,10 @@ let trans_visitor
13441344
let is_stateful =
13451345
if (force_stateful || type_has_state cx t) then 1L else 0L
13461346
in
1347-
log cx "tydesc for %a has sz=%Ld, align=%Ld, is_stateful=%Ld"
1348-
Ast.sprintf_ty t sz align is_stateful;
1347+
iflog
1348+
(fun _ ->
1349+
log cx "tydesc for %a has sz=%Ld, align=%Ld, is_stateful=%Ld"
1350+
Ast.sprintf_ty t sz align is_stateful);
13491351
Asm.DEF
13501352
(tydesc_fixup,
13511353
Asm.SEQ
@@ -5955,7 +5957,7 @@ let trans_visitor
59555957
let (header_tup, oid, i) = tag in
59565958
let tinfo = Hashtbl.find cx.ctxt_all_tag_info oid in
59575959
let (n, _, _) = Hashtbl.find tinfo.tag_nums i in
5958-
let _ = log cx "tag variant: %s -> tag value #%d" n i in
5960+
let _ = iflog (fun _ -> log cx "tag variant: %s -> tag value #%d" n i) in
59595961
let (dst_cell, dst_slot) = get_current_output_cell_and_slot() in
59605962
let dst_cell = deref_slot true dst_cell dst_slot in
59615963
let tag_cell = get_element_ptr dst_cell Abi.tag_elt_discriminant in

0 commit comments

Comments
 (0)