Skip to content

Commit

Permalink
Fix autotune compilation on OCaml < 4.13 (PR #772)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 11, 2022
1 parent f91c892 commit 7f84b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoTune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ let rec setCongruenceRecursive fd depth neigbourFunction =
setCongruenceRecursive (Cilfacade.find_varinfo_fundec vinfo) (depth -1) neigbourFunction
)
(FunctionSet.filter (*for extern and builtin functions there is no function definition in CIL*)
(fun x -> not (isExtern x.vstorage || String.starts_with ~prefix:"__builtin" x.vname))
(fun x -> not (isExtern x.vstorage || BatString.starts_with x.vname "__builtin"))
(neigbourFunction fd.svar)
)
;
Expand Down

0 comments on commit 7f84b27

Please sign in to comment.