changeset 451:1bd575eb2d1e

Remove empty writes
author Adam Chlipala <adamc@hcoop.net>
date Sat, 01 Nov 2008 16:50:28 -0400
parents 07f6576aeb0a
children 222cbc1da232
files src/mono_opt.sml
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mono_opt.sml	Sat Nov 01 16:46:16 2008 -0400
+++ b/src/mono_opt.sml	Sat Nov 01 16:50:28 2008 -0400
@@ -311,6 +311,9 @@
       | EWrite (ELet (x, t, e1, e2), loc) =>
         optExp (ELet (x, t, e1, (EWrite e2, loc)), loc)
 
+      | EWrite (EPrim (Prim.String ""), loc) =>
+        ERecord []
+
       | _ => e
 
 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e)