mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
Use memset instead of bzero, its more portable.
llvm-svn: 91754
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user