diff options
Diffstat (limited to 'gas/config/tc-mmix.c')
-rw-r--r-- | gas/config/tc-mmix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index b22ad2ee35..1a5f7ae443 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -542,6 +542,11 @@ get_putget_operands (insn, operands, exp) input_line_pointer = p; + /* Initialize both possible operands to error state, in case we never + get further. */ + exp[0].X_op = O_illegal; + exp[1].X_op = O_illegal; + if (insn->operands == mmix_operands_get) { expp_reg = &exp[0]; @@ -573,10 +578,6 @@ get_putget_operands (insn, operands, exp) expp_sreg = &exp[0]; expp_reg = &exp[1]; - /* Initialize to error state in case we'll never call expression on - this operand. */ - expp_reg->X_op = O_illegal; - sregp = p; c = get_symbol_end (); sregend = p = input_line_pointer; |