public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-4692] Add missing non-NULL check in cgraphclones
@ 2020-11-03 19:31 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2020-11-03 19:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a2058f5812bea3673859a68f9bfea61dbce6730f
commit r11-4692-ga2058f5812bea3673859a68f9bfea61dbce6730f
Author: Jan Hubicka <jh@suse.cz>
Date: Tue Nov 3 20:31:23 2020 +0100
Add missing non-NULL check in cgraphclones
2020-11-03 Jan Hubicka <hubicka@ucw.cz>
PR ipa/97698
* cgraphclones.c (duplicate_thunk_for_node): Check that info is
non-NULL.
Diff:
---
gcc/cgraphclones.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index b5793f90b64..36ca6477139 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -239,7 +239,7 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node)
new_thunk->thunk = thunk->thunk;
new_thunk->unique_name = in_lto_p;
new_thunk->former_clone_of = thunk->decl;
- if (info->param_adjustments)
+ if (info && info->param_adjustments)
clone_info::get_create (new_thunk)->param_adjustments
= info->param_adjustments;
new_thunk->unit_id = thunk->unit_id;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-03 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 19:31 [gcc r11-4692] Add missing non-NULL check in cgraphclones Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).