aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-a29k.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-a29k.c')
-rw-r--r--gas/config/tc-a29k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c
index 1ed07df..537f795 100644
--- a/gas/config/tc-a29k.c
+++ b/gas/config/tc-a29k.c
@@ -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;