]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR 79375] Avoid passing NULL by reference
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2017 09:47:09 +0000 (09:47 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2017 09:47:09 +0000 (09:47 +0000)
commitf579567dded5b4aa739912bcbaa77f39682b1071
tree24264722d83b83fd458ec440fd846ad648c70a87
parent4df7e89d9e88b2c1af8f9ae79eb258d4f7a77053
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245275 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-prop.c