ref: 3e1b1c0c4e889523604b9ecf286bb352cf2b3bc6
parent: eea0139149e4b53947fc3ba850a0b3f4713f3837
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Jan 25 16:03:52 EST 2016
[cc2] Set correct values in array types Size and alignment were not set in array types, and the node was not freed.
--- a/cc2/parser.c
+++ b/cc2/parser.c
@@ -356,11 +356,15 @@
array(void)
{
Type *tp, *base;
- Node *np;
+ Node *size;
- np = pop();
+ size = pop();
base = pop();
tp = pop();
+ tp->size = size->u.i;
+ tp->align = base->align;
+
+ delnode(size);
}
static void