diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 27ca2da7df..64070471c4 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2018-10-08 Tamar Christina + + * aarch64-opc.c (verify_constraints): Use memset instead of {0}. + 2018-10-05 H.J. Lu * i386-dis.c (rm_table): Add enclv. diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 3f62e2a9fc..ed75a9a77e 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -4671,7 +4671,9 @@ verify_constraints (const struct aarch64_inst *inst, /* Next check for usage of the predicate register. */ aarch64_opnd_info blk_dest = insn_sequence->instr->operands[0]; - aarch64_opnd_info blk_pred = {0}, inst_pred = {0}; + aarch64_opnd_info blk_pred, inst_pred; + memset (&blk_pred, 0, sizeof (aarch64_opnd_info)); + memset (&inst_pred, 0, sizeof (aarch64_opnd_info)); bfd_boolean predicated = FALSE; assert (blk_dest.type == AARCH64_OPND_SVE_Zd);