aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-03-10 14:24:45 +0100
committerMartin Liska <marxin@gcc.gnu.org>2017-03-10 13:24:45 +0000
commit8823ce3f54a875c2523264ddf3342bc54cdf10eb (patch)
treeae3fd8506b2f139ad2ff8a99c72c1db504ee9132 /gcc/tree-chkp.c
parent74106ead26b17f3e68b73c6704632cbbbf762a5c (diff)
downloadgcc-8823ce3f54a875c2523264ddf3342bc54cdf10eb.zip
gcc-8823ce3f54a875c2523264ddf3342bc54cdf10eb.tar.gz
gcc-8823ce3f54a875c2523264ddf3342bc54cdf10eb.tar.bz2
MPX: Fix option handling.
2017-03-10 Martin Liska <mliska@suse.cz> PR target/65705 PR target/69804 * toplev.c (process_options): Enable MPX with LSAN and UBSAN. * tree-chkp.c (chkp_walk_pointer_assignments): Verify that FIELD != NULL. From-SVN: r246027
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r--gcc/tree-chkp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c
index acd57ea..75caf83 100644
--- a/gcc/tree-chkp.c
+++ b/gcc/tree-chkp.c
@@ -3803,7 +3803,7 @@ chkp_walk_pointer_assignments (tree lhs, tree rhs, void *arg,
FOR_EACH_CONSTRUCTOR_ELT (CONSTRUCTOR_ELTS (rhs), cnt, field, val)
{
- if (chkp_type_has_pointer (TREE_TYPE (field)))
+ if (field && chkp_type_has_pointer (TREE_TYPE (field)))
{
tree lhs_field = chkp_build_component_ref (lhs, field);
chkp_walk_pointer_assignments (lhs_field, val, arg, handler);