Fix a call to ultimate_alias_target
authorMartin Jambor <mjambor@suse.cz>
Wed, 30 Oct 2019 13:57:14 +0000 (14:57 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 30 Oct 2019 13:57:14 +0000 (14:57 +0100)
2019-10-30  Martin Jambor  <mjambor@suse.cz>

* ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
ultimate_alias_target.

From-SVN: r277622

gcc/ChangeLog
gcc/ipa-prop.c

index 40e2c3ff9383ff73db41bc5676a846a1709ed465..b48bb4d838c91f1cd23def8a29f07d05be1b7fea 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-30  Martin Jambor  <mjambor@suse.cz>
+
+       * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
+       ultimate_alias_target.
+
 2019-10-30  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/92275
index 336d271874d6621e606650866ae57a57d79163b3..e20467a4bcef6c0013ed865be9f41eb3eec62a93 100644 (file)
@@ -2040,7 +2040,7 @@ ipa_compute_jump_functions_for_bb (struct ipa_func_body_info *fbi, basic_block b
 
       if (callee)
        {
-         callee->ultimate_alias_target ();
+         callee = callee->ultimate_alias_target ();
          /* We do not need to bother analyzing calls to unknown functions
             unless they may become known during lto/whopr.  */
          if (!callee->definition && !flag_lto)