fixed the type of the entity number
[libfirm] / ir / tv / tv_t.h
index d98acf2..aec3520 100644 (file)
@@ -14,6 +14,8 @@
 #define _TV_T_H_
 
 #include "firm_config.h"
+
+#include <assert.h>
 #include "entity.h"
 #include "irmode.h"
 #include "tv.h"
@@ -51,7 +53,8 @@ void finish_tarval(void);
  *   irmode.h for predefined modes
  */
 struct tarval {
-  ir_mode *mode;          /**< the mode of the stored value */
+  firm_kind kind;         /**< must be k_tarval */
+  ir_mode   *mode;        /**< the mode of the stored value */
   const void *value;      /**< the value stored in an internal way... */
   unsigned int length;    /**< the length of the stored value */
 };