Commit 59829798 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

tr: Reduce code duplication.

parent 0b5c6b75
......@@ -812,8 +812,7 @@ ir_node *get_array_size(const ir_type *array)
unsigned get_array_size_int(const ir_type *array)
{
assert(is_Array_type(array));
ir_node *node = array->attr.array.size;
ir_node *const node = get_array_size(array);
return get_Const_long(node);
}
......
Supports Markdown
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