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
13142797
Commit
13142797
authored
Oct 04, 2015
by
Matthias Braun
Browse files
Use same value_not_null test in opt_ldst as in iropt.c
parent
6ccc20cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/opt_ldst.c
View file @
13142797
...
...
@@ -618,11 +618,10 @@ static void update_Load_memop(memop_t *m)
/* check if we can determine the entity that will be loaded */
ent
=
find_constant_entity
(
ptr
);
if
(
ent
!=
NULL
&&
get_entity_visibility
(
ent
)
!=
ir_visibility_external
)
{
/*
a static allocation that is not external: there should be NO exception
*
when loading even if we cannot replace
the load itself. */
if
(
ent
!=
NULL
&&
value_not_null
(
ptr
,
NULL
)
)
{
/*
There should be NO exception when loading even if we cannot replace
* the load itself. */
/* no exception, clear the m fields as it might be checked later again */
if
(
m
->
projs
[
pn_Load_X_except
])
{
ir_graph
*
irg
=
get_irn_irg
(
ptr
);
exchange
(
m
->
projs
[
pn_Load_X_except
],
new_r_Bad
(
irg
,
mode_X
));
...
...
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