aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend/SimplExpr.v
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-04-16 13:42:57 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-04-16 13:42:57 +0000
commit214ab56c02860a9c472f701b601cbf6c9cf5fd69 (patch)
tree73f4aceb0eabd3202c18f64589ec7e8d67b89b5a /cfrontend/SimplExpr.v
parent029a8acc9057480021eefc88d435bccf99590985 (diff)
downloadcompcert-kvx-214ab56c02860a9c472f701b601cbf6c9cf5fd69.tar.gz
compcert-kvx-214ab56c02860a9c472f701b601cbf6c9cf5fd69.zip
Continued: change typeconv t into incrdecr_type t for Epostincr.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2456 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/SimplExpr.v')
-rw-r--r--cfrontend/SimplExpr.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/SimplExpr.v b/cfrontend/SimplExpr.v
index 01f304e2..f9aa8dbf 100644
--- a/cfrontend/SimplExpr.v
+++ b/cfrontend/SimplExpr.v
@@ -139,8 +139,8 @@ Function makeif (a: expr) (s1 s2: statement) : statement :=
Definition transl_incrdecr (id: incr_or_decr) (a: expr) (ty: type) : expr :=
match id with
- | Incr => Ebinop Oadd a (Econst_int Int.one type_int32s) (typeconv ty)
- | Decr => Ebinop Osub a (Econst_int Int.one type_int32s) (typeconv ty)
+ | Incr => Ebinop Oadd a (Econst_int Int.one type_int32s) (incrdecr_type ty)
+ | Decr => Ebinop Osub a (Econst_int Int.one type_int32s) (incrdecr_type ty)
end.
(** Generate a [Sset] or [Sbuiltin] operation as appropriate