typeck.c (cxx_mark_addressable): Add braces around the first if.
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 11 Nov 2004 03:13:03 +0000 (03:13 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 11 Nov 2004 03:13:03 +0000 (19:13 -0800)
2004-11-10  Andrew Pinski  <pinskia@physics.uc.edu>

        * typeck.c (cxx_mark_addressable): Add braces around the first if.

From-SVN: r90469

gcc/cp/ChangeLog
gcc/cp/typeck.c

index d6a7eeb675f772ca63b30a23a48eb6847f94aa90..1b34b951994d2daf3441a1abb5712e7cd1a22ecf 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-10  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * typeck.c (cxx_mark_addressable): Add braces around the first if.
+
 2004-11-10  Adam Nemet  <anemet@lnxw.com>
 
        PR middle-end/18160  
index ce3f2f768a00a4e79223364b5dd9fdc9608ab71d..b1a85d5a1f26ef20b82c1e41b0e3f257e2f25747 100644 (file)
@@ -4344,15 +4344,17 @@ cxx_mark_addressable (tree exp)
       case RESULT_DECL:
        if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x)
            && !DECL_ARTIFICIAL (x))
-         if (DECL_HARD_REGISTER (x) != 0)
-           {
-             error
-               ("address of explicit register variable %qD requested", x);
-             return false;
-           }
-         else if (extra_warnings)
-           warning
-             ("address requested for %qD, which is declared %<register%>", x);
+         {
+           if (DECL_HARD_REGISTER (x) != 0)
+             {
+               error
+                 ("address of explicit register variable %qD requested", x);
+               return false;
+             }
+           else if (extra_warnings)
+             warning
+               ("address requested for %qD, which is declared %<register%>", x);
+         }
        TREE_ADDRESSABLE (x) = 1;
        return true;