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
1635c1e3
Commit
1635c1e3
authored
Jan 24, 2014
by
yb9976
Browse files
Fixed alias relation for two entities.
parent
59d4f317
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ana/irmemory.c
View file @
1635c1e3
...
...
@@ -572,9 +572,18 @@ static ir_alias_relation _get_alias_relation(
/* same base address -> compare Sel entities */
if
(
base1
==
base2
&&
ent1
!=
NULL
&&
ent2
!=
NULL
)
{
if
(
ent1
!=
ent2
)
if
(
ent1
!=
ent2
)
{
long
offset1
=
get_entity_offset
(
ent1
);
long
offset2
=
get_entity_offset
(
ent2
);
long
size1
=
get_type_size_bytes
(
type1
);
long
size2
=
get_type_size_bytes
(
type2
);
if
(
offset1
+
size1
<=
offset2
||
offset2
+
size2
<=
offset1
)
{
return
ir_no_alias
;
else
if
(
have_const_offsets
)
}
return
ir_may_alias
;
}
else
if
(
have_const_offsets
)
return
different_sel_offsets
(
adr1
,
adr2
);
}
...
...
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