From 2fe49604c891a11ccc61a234e4dec6c1eda890b7 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 7 Sep 2009 14:28:40 +0000 Subject: [PATCH] return 0 for number of outputs for nodes without backend info [r26502] --- ir/be/bearch.h | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.20.1