Fixed a bug with ofg iteration.
[libfirm] / ir / be / bespillbelady2.c
index 9386707..3cb4126 100644 (file)
@@ -58,7 +58,6 @@
 
 #include "beutil.h"
 #include "bearch_t.h"
-#include "bespillbelady.h"
 #include "besched_t.h"
 #include "beirgmod.h"
 #include "belive_t.h"
@@ -68,6 +67,7 @@
 #include "beloopana.h"
 #include "beirg_t.h"
 #include "bemodule.h"
+#include "bespill.h"
 
 #include <libcore/lc_opts.h>
 #include <libcore/lc_opts_enum.h>
@@ -610,7 +610,7 @@ static void displace(block_info_t *bi, workset_t *new_vals, int is_usage) {
                                }
                        }
                } else {
-                       assert(is_usage || "Defined value already in workset?!?");
+                       assert(is_usage && "Defined value already in workset?!?");
                        DBG((dbg, DBG_DECIDE, "\t\tskip %+F\n", val));
                }
        }