]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add missed pointer de-reference
authorYuri Rumyantsev <ysrumyan@gmail.com>
Mon, 2 Dec 2013 14:39:28 +0000 (14:39 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 2 Dec 2013 14:39:28 +0000 (06:39 -0800)
2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>

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

From-SVN: r205586

gcc/ChangeLog
gcc/ipa-inline.c

index 78554aae7c703e1eed57ce70f5aeb0a9073eb3b3..e7d1575fcea6d105cd7a52c1dd531cb92b6265d7 100644 (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
index 0b7da7a4af1d831d5bb8e7995df19e2c17aa31a9..38157caf829030e99dd02eeb91cb7b03638997e5 100644 (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;