* c-decl.c (grokfield): Remove local variable.
authorMarek Polacek <polacek@redhat.com>
Tue, 25 Jul 2017 12:06:12 +0000 (12:06 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 25 Jul 2017 12:06:12 +0000 (12:06 +0000)
From-SVN: r250513

gcc/c/ChangeLog
gcc/c/c-decl.c

index 4e4d20bbe20772d3d6d5d2b8e543d860add38c31..4ce5360c0c1153fa9e094561666f65833e20f254 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-25  Marek Polacek  <polacek@redhat.com>
+
+       * c-decl.c (grokfield): Remove local variable.
+
 2017-07-25  Marek Polacek  <polacek@redhat.com>
 
        PR c/81364
index 50da185e363938a597cca621bbe72ff906b86687..12fbc18bb945b625335e16dd14cf84c3f08b1685 100644 (file)
@@ -7559,10 +7559,9 @@ grokfield (location_t loc,
         that took root before someone noticed the bug...  */
 
       tree type = declspecs->type;
-      bool type_ok = RECORD_OR_UNION_TYPE_P (type);
       bool ok = false;
 
-      if (type_ok
+      if (RECORD_OR_UNION_TYPE_P (type)
          && (flag_ms_extensions
              || flag_plan9_extensions
              || !declspecs->typedef_p))