- more irp_resource_reserved()
[libfirm] / ir / ana / irmemory.c
index 77e71c3..8503266 100644 (file)
@@ -24,9 +24,7 @@
  * @date     27.12.2006
  * @version  $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <stdlib.h>
 #include <stdbool.h>
@@ -789,7 +787,8 @@ static ir_entity_usage determine_entity_usage(const ir_node *irn, ir_entity *ent
 
                switch (get_irn_opcode(succ)) {
                case iro_Load:
-                       assert(irn == get_Load_ptr(succ));
+                       /* beware: irn might be a Id node here, so irn might be not
+                          equal to get_Load_ptr(succ) */
                        res |= ir_usage_read;
 
                        /* check if this load is not a hidden conversion */