Guard unguarded log calls that snuck in. Shave 5s off building rustc.
This commit is contained in:
parent
b81aa05fa1
commit
59c9e6caff
1 changed files with 5 additions and 3 deletions
|
@ -1344,8 +1344,10 @@ let trans_visitor
|
||||||
let is_stateful =
|
let is_stateful =
|
||||||
if (force_stateful || type_has_state cx t) then 1L else 0L
|
if (force_stateful || type_has_state cx t) then 1L else 0L
|
||||||
in
|
in
|
||||||
log cx "tydesc for %a has sz=%Ld, align=%Ld, is_stateful=%Ld"
|
iflog
|
||||||
Ast.sprintf_ty t sz align is_stateful;
|
(fun _ ->
|
||||||
|
log cx "tydesc for %a has sz=%Ld, align=%Ld, is_stateful=%Ld"
|
||||||
|
Ast.sprintf_ty t sz align is_stateful);
|
||||||
Asm.DEF
|
Asm.DEF
|
||||||
(tydesc_fixup,
|
(tydesc_fixup,
|
||||||
Asm.SEQ
|
Asm.SEQ
|
||||||
|
@ -5955,7 +5957,7 @@ let trans_visitor
|
||||||
let (header_tup, oid, i) = tag in
|
let (header_tup, oid, i) = tag in
|
||||||
let tinfo = Hashtbl.find cx.ctxt_all_tag_info oid in
|
let tinfo = Hashtbl.find cx.ctxt_all_tag_info oid in
|
||||||
let (n, _, _) = Hashtbl.find tinfo.tag_nums i in
|
let (n, _, _) = Hashtbl.find tinfo.tag_nums i in
|
||||||
let _ = log cx "tag variant: %s -> tag value #%d" n i in
|
let _ = iflog (fun _ -> log cx "tag variant: %s -> tag value #%d" n i) in
|
||||||
let (dst_cell, dst_slot) = get_current_output_cell_and_slot() in
|
let (dst_cell, dst_slot) = get_current_output_cell_and_slot() in
|
||||||
let dst_cell = deref_slot true dst_cell dst_slot in
|
let dst_cell = deref_slot true dst_cell dst_slot in
|
||||||
let tag_cell = get_element_ptr dst_cell Abi.tag_elt_discriminant in
|
let tag_cell = get_element_ptr dst_cell Abi.tag_elt_discriminant in
|
||||||
|
|
Loading…
Reference in a new issue