Commit a390c5a7 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix is_init_string

parent ea9c033e
......@@ -344,9 +344,13 @@ static bool is_init_string(ir_initializer_t const* const init, ir_type *const ty
n = get_initializer_compound_n_entries(init);
for (i = 0; i != n; ++i) {
ir_initializer_t const* const val = get_initializer_compound_value(init, i);
ir_tarval* const tv = get_initializer_tarval_value(val);
ir_tarval* tv;
long v;
if (get_initializer_kind(val) != IR_INITIALIZER_TARVAL)
return false;
tv = get_initializer_tarval_value(val);
if (!tarval_is_constant(tv))
return false;
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