re PR rtl-optimization/69217 (ICE at var-tracking.c:5038 Segmentation fault)
PR rtl-optimization/69217 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there are no TYPE_FIELDS set for the record type. From-SVN: r232845
This commit is contained in:
parent
4d2d386c47
commit
3671c99673
|
@ -1,3 +1,9 @@
|
||||||
|
2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
|
||||||
|
|
||||||
|
PR rtl-optimization/69217
|
||||||
|
* var-tracking.c (tracked_record_parameter_p): Don't segfault if there
|
||||||
|
are no TYPE_FIELDS set for the record type.
|
||||||
|
|
||||||
2016-01-26 Jakub Jelinek <jakub@redhat.com>
|
2016-01-26 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR target/68662
|
PR target/68662
|
||||||
|
|
|
@ -5128,7 +5128,8 @@ tracked_record_parameter_p (tree t)
|
||||||
if (TREE_CODE (type) != RECORD_TYPE)
|
if (TREE_CODE (type) != RECORD_TYPE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (DECL_CHAIN (TYPE_FIELDS (type)) == NULL_TREE)
|
if (TYPE_FIELDS (type) == NULL_TREE
|
||||||
|
|| DECL_CHAIN (TYPE_FIELDS (type)) == NULL_TREE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue