Add missed pointer de-reference

2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>

	* ipa-inline.c (check_callers): Add missed pointer de-reference.

From-SVN: r205586
This commit is contained in:
Yuri Rumyantsev 2013-12-02 14:39:28 +00:00 committed by H.J. Lu
parent 139bd704f1
commit 1656a81424
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
* ipa-inline.c (check_callers): Add missed pointer de-reference.
2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/59356

View File

@ -762,7 +762,7 @@ check_callers (struct cgraph_node *node, void *has_hot_call)
{
if (!can_inline_edge_p (e, true))
return true;
if (!has_hot_call && cgraph_maybe_hot_edge_p (e))
if (!(*(bool *)has_hot_call) && cgraph_maybe_hot_edge_p (e))
*(bool *)has_hot_call = true;
}
return false;