Commit 44a71f36 by Martin Jambor Committed by Martin Jambor

[PR 71234] Avoid valgrind warning in ipa-cp

2016-05-23  Martin Jambor  <mjambor@suse.cz>

	PR ipa/71234
	* ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
	from_global_constant if t is not NULL.

From-SVN: r236598
parent a7dc5980
2016-05-23 Martin Jambor <mjambor@suse.cz>
PR ipa/71234
* ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
from_global_constant if t is not NULL.
2016-05-23 Marek Polacek <polacek@redhat.com> 2016-05-23 Marek Polacek <polacek@redhat.com>
PR c/49859 PR c/49859
......
...@@ -2027,7 +2027,8 @@ ipa_get_indirect_edge_target_1 (struct cgraph_edge *ie, ...@@ -2027,7 +2027,8 @@ ipa_get_indirect_edge_target_1 (struct cgraph_edge *ie,
ie->indirect_info->offset, ie->indirect_info->offset,
ie->indirect_info->by_ref, ie->indirect_info->by_ref,
&from_global_constant); &from_global_constant);
if (!from_global_constant if (t
&& !from_global_constant
&& !ie->indirect_info->guaranteed_unmodified) && !ie->indirect_info->guaranteed_unmodified)
t = NULL_TREE; t = NULL_TREE;
} }
......
Markdown is supported
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