# include "irgraph_t.h"
# include "iropt_t.h"
# include "irgwalk.h"
-# include "ircons.h"
+# include "ircons_t.h"
# include "irgmod.h"
# include "array.h"
# include "pset.h"
n_ret++;
}
}
- phi = new_Phi(n_ret, cf_pred, get_irn_mode(cf_pred[0]));
+ if (n_ret > 0)
+ phi = new_Phi(n_ret, cf_pred, get_irn_mode(cf_pred[0]));
+ else
+ phi = new_Bad();
res_pred[j] = phi;
/* Conserve Phi-list for further inlinings -- but might be optimized */
if (get_nodes_Block(phi) == post_bl) {