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
4cc079f8
Commit
4cc079f8
authored
Sep 26, 2008
by
Christoph Mallon
Browse files
SymConsts represent constant entities irrespective of variability.
[r22297]
parent
1f85a095
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
4cc079f8
...
...
@@ -257,10 +257,7 @@ static ir_entity *find_constant_entity(ir_node *ptr)
{
for
(;;)
{
if
(
is_SymConst
(
ptr
)
&&
get_SymConst_kind
(
ptr
)
==
symconst_addr_ent
)
{
ir_entity
*
ent
=
get_SymConst_entity
(
ptr
);
if
(
variability_constant
==
get_entity_variability
(
ent
))
return
ent
;
return
NULL
;
return
get_SymConst_entity
(
ptr
);
}
else
if
(
is_Sel
(
ptr
))
{
ir_entity
*
ent
=
get_Sel_entity
(
ptr
);
ir_type
*
tp
=
get_entity_owner
(
ent
);
...
...
Write
Preview
Markdown
is supported
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