summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlasdair2018-06-09 03:06:27 +0100
committerAlasdair2018-06-09 03:06:27 +0100
commit6b98912c895a72e436d0e3b6a72bd751ad29f156 (patch)
tree6a0216b939550789760c3318036cc920d482ce5f /src
parentb424d30a1b5de1b0a38482624b47ea610c10a12e (diff)
Fix issue in C_backend, and run C tests with undefined behavior sanitizer
Diffstat (limited to 'src')
-rw-r--r--src/c_backend.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_backend.ml b/src/c_backend.ml
index baa6129a..06e92f3a 100644
--- a/src/c_backend.ml
+++ b/src/c_backend.ml
@@ -1586,7 +1586,7 @@ let rec compile_aexp ctx (AE_aux (aexp_aux, env, l)) =
in
[iblock case_instrs; ilabel try_label]
in
- assert (ctyp_equal ctyp (ctyp_of_typ typ));
+ assert (ctyp_equal ctyp (ctyp_of_typ ctx typ));
[icomment "begin try catch";
idecl ctyp try_return_id;
itry_block (aexp_setup @ [aexp_call (CL_id try_return_id)] @ aexp_cleanup);