]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
don't just store a 'bool constant' in the ast/ir, store the complete qualifier: ...
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 7b5ab5e1d095e68db18bea3eddc12bc4d723a3ea..6e32d98ef07cdb69eb3373293445965df646ef32 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -42,12 +42,14 @@ typedef struct ir_value_s {
     int       fieldtype;
     /* and the output type of a function */
     int       outtype;
+    /* 'const' vs 'var' qualifier */
+    int       cvq;
 
     struct ir_instr_s **reads;
     struct ir_instr_s **writes;
 
     /* constantvalues */
-    bool isconst;
+    bool hasvalue;
     union {
         float    vfloat;
         int      vint;