mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
Use memset instead of bzero, its more portable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8ca42ff59
commit
71f842d7c1
@ -17,7 +17,7 @@
|
||||
#include <stdarg.h> /* for va_*() */
|
||||
#include <stdio.h> /* for vsnprintf() */
|
||||
#include <stdlib.h> /* for exit() */
|
||||
#include <string.h> /* for bzero() */
|
||||
#include <string.h> /* for memset() */
|
||||
|
||||
#include "X86DisassemblerDecoder.h"
|
||||
|
||||
@ -1331,7 +1331,7 @@ int decodeInstruction(struct InternalInstruction* insn,
|
||||
void* loggerArg,
|
||||
uint64_t startLoc,
|
||||
DisassemblerMode mode) {
|
||||
bzero(insn, sizeof(struct InternalInstruction));
|
||||
memset(insn, 0, sizeof(struct InternalInstruction));
|
||||
|
||||
insn->reader = reader;
|
||||
insn->readerArg = readerArg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user