summaryrefslogtreecommitdiff
path: root/backend/CMtypecheck.ml
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-01-11 12:07:11 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-01-11 12:07:11 +0000
commitf6ecbb948ccf7f8a4e156eb29e3a41e7f2953407 (patch)
treead958b2313ad00c2fdde49bd5f243f82d1e3ea58 /backend/CMtypecheck.ml
parentbb9d14a3f95fc0e3c8cad10d8ea8e2b2738da7fc (diff)
Elimination of "alloc" instruction in Caml files and test files.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@946 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/CMtypecheck.ml')
-rw-r--r--backend/CMtypecheck.ml9
1 files changed, 0 insertions, 9 deletions
diff --git a/backend/CMtypecheck.ml b/backend/CMtypecheck.ml
index d761f75..c4f45b2 100644
--- a/backend/CMtypecheck.ml
+++ b/backend/CMtypecheck.ml
@@ -294,15 +294,6 @@ let rec type_stmt env blk ret s =
with Error s ->
raise (Error (sprintf "In call:\n%s" s))
end
- | Salloc(id, e) ->
- let tid = type_var env id in
- let te = type_expr env [] e in
- begin try
- unify tint te;
- unify tint tid
- with Error s ->
- raise (Error (sprintf "In alloc:\n%s" s))
- end
| Sseq(s1, s2) ->
type_stmt env blk ret s1;
type_stmt env blk ret s2