Allow the Bad node to be set in set_store(). This is neccessary, because Bad might...
[libfirm] / ir / ir / ircons_t.h
index 22c6ea3..9995365 100644 (file)
 /**
  * Initializes the graph construction.
  *
- * @param func  @see uninitialized_local_variable_func_t
+ * @param func  callback that is called if a uninitialized
+ *              variable is detected
+ *
+ * @see uninitialized_local_variable_func_t
  */
 void init_cons(uninitialized_local_variable_func_t *func);
 
@@ -27,12 +30,12 @@ void init_cons(uninitialized_local_variable_func_t *func);
 
 static INLINE ir_node *
 _new_d_Bad(void) {
-  return current_ir_graph->bad;
+  return current_ir_graph->anchors[anchor_bad];
 }
 
 static INLINE ir_node *
 _new_d_NoMem(void) {
-  return current_ir_graph->no_mem;
+  return current_ir_graph->anchors[anchor_no_mem];
 }