Skip to content

Commit acdc02b

Browse files
committed
---
yaml --- r: 1231 b: refs/heads/master c: 59c9e6c h: refs/heads/master i: 1229: b65eed0 1227: 2866531 1223: ef5760e 1215: 85949fe v: v3
1 parent 56674ba commit acdc02b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b81aa05fa19a748e04808145cd8b7241f785693c
2+
refs/heads/master: 59c9e6caffadcfee9216ac289ae0b306fc2e55eb

trunk/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)