From 104201513a18636ec48a5d72e2007d6f06ddc4a9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 30 Jun 2005 09:55:48 +0000 Subject: [PATCH] beware of 64bit constants, cannot be handled yet [r6151] --- ir/stat/const_stat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/stat/const_stat.c b/ir/stat/const_stat.c index 3fa94cc60..6c5597790 100644 --- a/ir/stat/const_stat.c +++ b/ir/stat/const_stat.c @@ -88,6 +88,11 @@ void stat_update_const(stat_info_t *status, ir_node *node, graph_entry_t *graph) if (mode_is_int(mode)) { tv = get_Const_tarval(node); + + /* FIXME: */ + if (! tarval_is_long(tv)) + return; + bits = log2(get_tarval_long(tv)); if (bits > ARR_SIZE(status->const_info.int_bits_count)) -- 2.20.1