]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-chkp-opt.c
Update copyright years.
[thirdparty/gcc.git] / gcc / tree-chkp-opt.c
index 6cf086c754c78623aaca4927eaf3960dca0965c3..6c84caee8ce7d3de35c3758969f983155bb7b9b1 100644 (file)
@@ -1,5 +1,5 @@
 /* Pointer Bounds Checker optimization pass.
-   Copyright (C) 2014-2016 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
    Contributed by Ilya Enkovich (ilya.enkovich@intel.com)
 
 This file is part of GCC.
@@ -610,7 +610,7 @@ chkp_get_check_result (struct check_info *ci, tree bounds)
       chkp_collect_value (DECL_INITIAL (bnd_var), bound_val);
       if (ci->type == CHECK_UPPER_BOUND)
        {
-         if (TREE_CODE (var) == VAR_DECL)
+         if (VAR_P (var))
            {
              if (DECL_SIZE (var)
                  && !chkp_variable_size_type (TREE_TYPE (var)))