diff options
author | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2019-07-08 10:48:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 10:48:24 +0200 |
commit | 96383f6dbccd4b280acad395b9a2683a645a9de3 (patch) | |
tree | 785fabd5bde83b9a690f9e46eb8e86e3448edfd3 /backend/PrintLTL.ml | |
parent | 98858317be25deed815c7a8b5d4e9d6b512f5de5 (diff) | |
download | compcert-kvx-96383f6dbccd4b280acad395b9a2683a645a9de3.tar.gz compcert-kvx-96383f6dbccd4b280acad395b9a2683a645a9de3.zip |
Compatibility with OCaml 4.08 (#302)
* Do not use `Pervasives.xxx` qualified names
Starting with OCaml 4.08, `Pervasives` is deprecated in favor of `Stdlib`,
and uses of `Pervasives` cause fatal warnings.
This commit uses unqualified names instead, as no ambiguity occurs.
* Clarify "open" statements
OCaml 4.08.0 has stricter warnings concerning open statements that
shadow module names.
Closes: #300
Diffstat (limited to 'backend/PrintLTL.ml')
-rw-r--r-- | backend/PrintLTL.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PrintLTL.ml b/backend/PrintLTL.ml index d0557073..1c449e74 100644 --- a/backend/PrintLTL.ml +++ b/backend/PrintLTL.ml @@ -112,7 +112,7 @@ let print_function pp id f = fprintf pp "%s() {\n" (extern_atom id); let instrs = List.sort - (fun (pc1, _) (pc2, _) -> Pervasives.compare pc2 pc1) + (fun (pc1, _) (pc2, _) -> compare pc2 pc1) (List.rev_map (fun (pc, i) -> (P.to_int pc, i)) (PTree.elements f.fn_code)) in |