diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-12-21 17:00:43 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-12-21 17:00:43 +0000 |
commit | 1cd385f3b354a78ae8d02333f40cd065073c9b19 (patch) | |
tree | 923e490d77d414280d91918bcf5c35b93df78ab0 /backend/PrintCminor.ml | |
parent | 1c768ee3ff91e826f52cf08e1aaa8c4d637240f5 (diff) | |
download | compcert-1cd385f3b354a78ae8d02333f40cd065073c9b19.tar.gz compcert-1cd385f3b354a78ae8d02333f40cd065073c9b19.zip |
Support "default" cases in the middle of a "switch", not just at the end.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2383 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/PrintCminor.ml')
-rw-r--r-- | backend/PrintCminor.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PrintCminor.ml b/backend/PrintCminor.ml index 5b91d41c..33c38f56 100644 --- a/backend/PrintCminor.ml +++ b/backend/PrintCminor.ml @@ -257,7 +257,7 @@ let rec print_stmt p s = fprintf p "@[<v 2>switch (%a) {" print_expr e; List.iter (fun (n, x) -> - fprintf p "@ case %ld: exit %d;\n" + fprintf p "@ case %ld: exit %d;" (camlint_of_coqint n) (Nat.to_int x)) cases; fprintf p "@ default: exit %d;\n" (Nat.to_int dfl); |