diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-08-08 10:37:53 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-08-08 10:37:53 +0200 |
commit | 8228d4f959c2211d1840928d1cfc349ce2820200 (patch) | |
tree | 01e9da05ca158ea53b447c67983058a25eb88d0d /cparser/Parse.ml | |
parent | b184e05aada74f34dafd9d1bf6bc24e68ab76e05 (diff) | |
download | compcert-kvx-8228d4f959c2211d1840928d1cfc349ce2820200.tar.gz compcert-kvx-8228d4f959c2211d1840928d1cfc349ce2820200.zip |
Added error check before transformations.
Added a check for errors after the elab phases to avoid problems
in the transformations due to broken input programs.
Bug 19504
Diffstat (limited to 'cparser/Parse.ml')
-rw-r--r-- | cparser/Parse.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Parse.ml b/cparser/Parse.ml index c125e653..3f60ebb4 100644 --- a/cparser/Parse.ml +++ b/cparser/Parse.ml @@ -74,6 +74,7 @@ let preprocessed_file transfs name sourcefile = | Parser.Parser.Inter.Timeout_pr -> assert false | Parser.Parser.Inter.Parsed_pr (ast, _ ) -> ast) in let p1 = Timing.time "Elaboration" Elab.elab_file ast in + Cerrors.raise_on_errors (); Timing.time2 "Emulations" transform_program t p1 name with | Cerrors.Abort -> |