diff options
Diffstat (limited to 'gas/config/tc-riscv.c')
-rw-r--r-- | gas/config/tc-riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index cf6e0d8b..3b520ad 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -3718,7 +3718,7 @@ riscv_ip_hardcode (char *str, if (*input_line_pointer != '\0') return _("unrecognized values"); - insn = XNEW (struct riscv_opcode); + insn = XCNEW (struct riscv_opcode); insn->match = values[num - 1]; create_insn (ip, insn); unsigned int bytes = riscv_insn_length (insn->match); |