[PR 79375] Avoid passing NULL by reference
authorMartin Jambor <mjambor@suse.cz>
Wed, 8 Feb 2017 09:47:09 +0000 (10:47 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 8 Feb 2017 09:47:09 +0000 (10:47 +0100)
commit159f01f8a9bcc92e142ab70ad0df57f371db1096
tree24264722d83b83fd458ec440fd846ad648c70a87
parent50c1f4a5e1d41701ee9fcf251c3ce9ad37a51329
[PR 79375] Avoid passing NULL by reference

2017-02-08  Martin Jambor  <mjambor@suse.cz>

PR ipa/79375
* ipa-prop.c (ipa_alloc_node_params): Make static, return bool
whether allocation happened.
(ipa_initialize_node_params): Do not call ipa_alloc_node_params if
nothing was allocated.

From-SVN: r245275
gcc/ChangeLog
gcc/ipa-prop.c