From: Matthias Braun Date: Mon, 7 Sep 2009 14:28:40 +0000 (+0000) Subject: return 0 for number of outputs for nodes without backend info X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2fe49604c891a11ccc61a234e4dec6c1eda890b7;p=libfirm return 0 for number of outputs for nodes without backend info [r26502] --- diff --git a/ir/be/bearch.h b/ir/be/bearch.h index b8f9dcb56..a8ce925d9 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -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); }