Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation error in
dce.ml
. (#11779)
This fixes the following compilation error: ```ocaml File "src/optimization/dce.ml", line 90, characters 13-48: 90 | List.exists (ExtString.String.starts_with file) dce.std_dirs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: This expression has type prefix:string -> bool but an expression was expected of type 'a -> bool make: *** [Makefile:81: haxe] Error 1 ``` By replacing: ```ocaml let is_std_file dce file = List.exists (ExtString.String.starts_with file) dce.std_dirs ``` with: ```ocaml let is_std_file dce file = List.exists (fun dir -> ExtString.String.starts_with file dir) dce.std_dirs ```
- Loading branch information