diff options
author | Richard Biener <rguenther@suse.de> | 2018-06-14 10:55:00 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-06-14 10:55:00 +0000 |
commit | a16fa075a887aad84b4de0d6d396bec06d539e39 (patch) | |
tree | df1a26fcb9bbb3fedaee646002bfeb935b01a1ca /gcc/tree-ssa-structalias.c | |
parent | 4c1d999a7e937da0d417e8153f54b646603bb210 (diff) | |
download | gcc-a16fa075a887aad84b4de0d6d396bec06d539e39.zip gcc-a16fa075a887aad84b4de0d6d396bec06d539e39.tar.gz gcc-a16fa075a887aad84b4de0d6d396bec06d539e39.tar.bz2 |
re PR ipa/86124 (ICE in create_variable_info_for, at tree-ssa-structalias.c:6123)
2018-06-14 Richard Biener <rguenther@suse.de>
PR ipa/86124
* tree-ssa-struct-alias.c (create_variable_info_for): Handle
NULL cgraph_node.
* gcc.dg/pr86124.c: New testcase.
From-SVN: r261587
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 73e500b..ac5d4bc 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -6120,7 +6120,8 @@ create_variable_info_for (tree decl, const char *name, bool add_id) cgraph_node *node; if (in_ipa_mode && TREE_CODE (decl) == FUNCTION_DECL - && (node = cgraph_node::get (decl))->ifunc_resolver) + && (node = cgraph_node::get (decl)) + && node->ifunc_resolver) { varinfo_t fi = get_vi_for_tree (node->get_alias_target ()->decl); constraint_expr rhs |