Commit 3671c996 by Iain Buclaw Committed by Iain Buclaw

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
parent 4d2d386c
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>
PR target/68662
......
......@@ -5128,7 +5128,8 @@ tracked_record_parameter_p (tree t)
if (TREE_CODE (type) != RECORD_TYPE)
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 true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment