Commit 2fe49604 authored by Matthias Braun's avatar Matthias Braun
Browse files

return 0 for number of outputs for nodes without backend info

parent 873b4e57
......@@ -726,6 +726,9 @@ struct arch_env_t {
static inline unsigned arch_irn_get_n_outs(const ir_node *node)
backend_info_t *info = be_get_info(node);
if (info->out_infos == NULL)
return 0;
return ARR_LEN(info->out_infos);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment