From 71f842d7c173330b60afd16284e36ab2d89322ca Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 19 Dec 2009 03:31:50 +0000 Subject: [PATCH] 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 --- lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c index 99ae9cdd0be..ba8d1a07601 100644 --- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c +++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c @@ -17,7 +17,7 @@ #include /* for va_*() */ #include /* for vsnprintf() */ #include /* for exit() */ -#include /* for bzero() */ +#include /* 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; -- 2.34.1