]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gengtype-parse.c
* read-rtl.c (parse_reg_note_name): Replace Yoda conditions with
[thirdparty/gcc.git] / gcc / gengtype-parse.c
index f6ad3987faa9b77ef0d6d6a0bb479eb00b91284c..be5a51d058bb008872e172bb38e9e3cbb8747eca 100644 (file)
@@ -948,9 +948,9 @@ type (options_p *optsp, bool nested)
                advance ();
                const char *basename = require (ID);
                /* This may be either an access specifier, or the base name.  */
-               if (0 == strcmp (basename, "public")
-                   || 0 == strcmp (basename, "protected")
-                   || 0 == strcmp (basename, "private"))
+               if (strcmp (basename, "public") == 0
+                   || strcmp (basename, "protected") == 0
+                   || strcmp (basename, "private") == 0)
                  basename = require (ID);
                base_class = find_structure (basename, TYPE_STRUCT);
                if (!base_class)