Fixed some problems due to refactoring in previous revisions.
[libfirm] / ir / be / bespill.c
index 2d3436a..5e16650 100644 (file)
@@ -39,7 +39,7 @@
 #include "belive_t.h"
 #include "beirg.h"
 #include "bearch.h"
-#include "benode_t.h"
+#include "benode.h"
 #include "besched.h"
 #include "bera.h"
 #include "beintlive_t.h"
@@ -280,9 +280,8 @@ void be_register_spiller(const char *name, be_spiller_t *spiller)
 void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls)
 {
        assert(selected_spiller != NULL);
-       if (selected_spiller != NULL) {
-               selected_spiller->spill(birg, cls);
-       }
+
+       selected_spiller->spill(birg, cls);
 }
 
 void be_init_spilloptions(void)