tree.c (protected_set_expr_location): Don't check whether T is non-null here.
authorMarek Polacek <polacek@redhat.com>
Sat, 13 Sep 2014 05:59:47 +0000 (05:59 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 13 Sep 2014 05:59:47 +0000 (05:59 +0000)
* tree.c (protected_set_expr_location): Don't check whether T is
non-null here.

From-SVN: r215234

gcc/ChangeLog
gcc/tree.c

index d30f380de392a44ebc6d669f8cab4a6d839bcde7..ba99610df884aaf4d09e876bed7aaa00b7fb4aea 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-13  Marek Polacek  <polacek@redhat.com>
+
+       * tree.c (protected_set_expr_location): Don't check whether T is
+       non-null here.
+
 2014-09-12  DJ Delorie  <dj@redhat.com>
 
        * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
index 6ad05756df00b25db24de08e94650c8fbdbc9416..f999a3bbdbed56a7b041bd32b25db2f2849b5032 100644 (file)
@@ -4585,7 +4585,7 @@ build_block (tree vars, tree subblocks, tree supercontext, tree chain)
 void
 protected_set_expr_location (tree t, location_t loc)
 {
-  if (t && CAN_HAVE_LOCATION_P (t))
+  if (CAN_HAVE_LOCATION_P (t))
     SET_EXPR_LOCATION (t, loc);
 }
 \f