Fix stupid bugs inserted during expression conversion.

This commit is contained in:
Ian Lance Taylor 1993-07-23 19:17:12 +00:00
parent f47e56c99f
commit 283dba4ba3
2 changed files with 4 additions and 2 deletions

View File

@ -403,7 +403,8 @@ parse_operand (s, operandp)
char *new;
input_line_pointer = s;
if (expression (operandp) == O_absent)
expression (operandp);
if (operandp->X_op == O_absent)
as_bad ("missing operand");
new = input_line_pointer;
input_line_pointer = save;

View File

@ -286,7 +286,8 @@ parse_exp (s, op, page)
input_line_pointer = s;
if (expression (op) == O_absent)
expression (op);
if (op->X_op == O_absent)
as_bad ("missing operand");
new = input_line_pointer;
input_line_pointer = save;