Pass correct parameters to c_parser_do_statement.
authorKaipeng Zhou <zhoukaipeng3@huawei.com>
Tue, 7 Jul 2020 09:07:28 +0000 (10:07 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 7 Jul 2020 09:07:28 +0000 (10:07 +0100)
gcc/c/ChangeLog:

* c-parser.c (c_parser_statement_after_labels): Pass correct
parameters to c_parser_do_statement.

gcc/c/c-parser.c

index 7bf91ef91aad4d190053f9c3a9de35e0614bbf0a..275b8a382558bf452956249764d8a67ec6a48f4d 100644 (file)
@@ -6194,7 +6194,7 @@ c_parser_statement_after_labels (c_parser *parser, bool *if_p,
          c_parser_while_statement (parser, false, 0, if_p);
          break;
        case RID_DO:
-         c_parser_do_statement (parser, 0, false);
+         c_parser_do_statement (parser, false, 0);
          break;
        case RID_FOR:
          c_parser_for_statement (parser, false, 0, if_p);