diff src/mono_opt.sml @ 451:1bd575eb2d1e

Remove empty writes
author Adam Chlipala <adamc@hcoop.net>
date Sat, 01 Nov 2008 16:50:28 -0400
parents 024478c34f4d
children 787d4931fb07
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)