fix trailing whitespaces and tabulators in the middle of a line
[libfirm] / ir / opt / reassoc.c
index a94567c..c008b15 100644 (file)
@@ -25,6 +25,7 @@
  */
 #include "config.h"
 
+#include "iroptimize.h"
 #include "iropt_t.h"
 #include "irnode_t.h"
 #include "irgraph_t.h"
@@ -47,7 +48,7 @@
 
 DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
-typedef struct _walker_t {
+typedef struct walker_t {
        int   changes;        /**< set, if a reassociation take place */
        waitq *wq;            /**< a wait queue */
 } walker_t;
@@ -588,7 +589,7 @@ static void wq_walker(ir_node *n, void *env)
        walker_t *wenv = env;
 
        set_irn_link(n, NULL);
-       if (is_no_Block(n)) {
+       if (!is_Block(n)) {
                ir_node *blk = get_nodes_block(n);
 
                if (is_Block_dead(blk) || get_Block_dom_depth(blk) < 0) {