shithub: mc

Download patch

ref: c246138e19efb1949e562717653adf9e41067fa5
parent: ac786e3d8bb3edab04ac3e53ecdee205665066ff
author: Ori Bernstein <[email protected]>
date: Fri Jun 29 15:40:32 EDT 2012

Actually store the union tags.

    I forgot to append the node that writes out the tag value.
    This commit solves that problem.

--- a/8/simp.c
+++ b/8/simp.c
@@ -681,7 +681,7 @@
     tmp = temp(s, n);
     u = addr(tmp, exprtype(n));
     tag = word(n->line, uc->id);
-    store(u, tag);
+    append(s, store(u, tag));
     if (!uc->etype)
         return tmp;