Skip to content

Commit

Permalink
Make assume_zero_alloc option arg of Debuginfo.from_location
Browse files Browse the repository at this point in the history
So that ocaml/ subdirectories build without changes
  • Loading branch information
gretay-js committed Aug 9, 2023
1 parent 91277fc commit 95edf88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocaml/lambda/debuginfo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ let item_from_location ~scopes loc =
dinfo_scopes = scopes
}

let from_location ~assume_zero_alloc = function
let from_location ?(assume_zero_alloc=false) = function
| Scoped_location.Loc_unknown -> { dbg = []; assume_zero_alloc; }
| Scoped_location.Loc_known {scopes; loc} ->
assert (not (Location.is_none loc));
Expand Down
2 changes: 1 addition & 1 deletion ocaml/lambda/debuginfo.mli
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ val is_none : t -> bool

val to_string : t -> string

val from_location : assume_zero_alloc:bool -> Scoped_location.t -> t
val from_location : ?assume_zero_alloc:bool -> Scoped_location.t -> t

val to_location : t -> Location.t

Expand Down

0 comments on commit 95edf88

Please sign in to comment.