Add a type field for ZCC expressions.

- Constants can fill out the type field right away. Other expressions will need
  to wait until a later pass, after names have been resolved, so they get
  initialized to NULL.
This commit is contained in:
Randy Heit 2013-09-10 20:50:21 -05:00
commit f9f8d1e79b
2 changed files with 15 additions and 2 deletions

View file

@ -296,6 +296,7 @@ struct ZCC_StateLoop : ZCC_StatePart
struct ZCC_Expression : ZCC_TreeNode
{
EZCCExprType Operation;
PType *Type;
};
struct ZCC_StateGoto : ZCC_StatePart