From 8b7a07ec7fe1449b83112feae26566167600d056 Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 11 Apr 2014 09:45:17 +0800 Subject: fixed bug of cast --- semantics.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'semantics.h') diff --git a/semantics.h b/semantics.h index fbbcf02..d781737 100644 --- a/semantics.h +++ b/semantics.h @@ -14,6 +14,7 @@ struct CVar { CVar_t next; /* next in the linked list */ CType_t type; int offset; + int is_const; CNode *ast; }; @@ -119,6 +120,7 @@ struct CScope { typedef struct ExpType { CType_t type; int lval; + int is_var; } ExpType; CScope_t cscope_create(); -- cgit v1.2.3