Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a390c5a7
Commit
a390c5a7
authored
Nov 18, 2011
by
Matthias Braun
Browse files
fix is_init_string
parent
ea9c033e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irdumptxt.c
View file @
a390c5a7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment