fixed bug: Wrong opcode range was requested in be
[libfirm] / ir / be / bessaconstr.c
index a1f2c90..f238720 100644 (file)
@@ -53,7 +53,7 @@
 #include "bessaconstr.h"
 #include "bemodule.h"
 #include "besched_t.h"
-#include "bera.h"
+#include "beintlive_t.h"
 #include "beirg_t.h"
 
 #include "debug.h"
@@ -144,9 +144,8 @@ static
 ir_node *get_def_at_idom(be_ssa_construction_env_t *env, ir_node *block)
 {
        ir_node *dom = get_Block_idom(block);
-       ir_node *def = search_def_end_of_block(env, dom);
-
-       return def;
+       assert(dom != NULL);
+       return search_def_end_of_block(env, dom);
 }
 
 static