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:
parent
6584819d01
commit
f9f8d1e79b
2 changed files with 15 additions and 2 deletions
|
|
@ -296,6 +296,7 @@ struct ZCC_StateLoop : ZCC_StatePart
|
|||
struct ZCC_Expression : ZCC_TreeNode
|
||||
{
|
||||
EZCCExprType Operation;
|
||||
PType *Type;
|
||||
};
|
||||
|
||||
struct ZCC_StateGoto : ZCC_StatePart
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue