[llvm-commits] [llvm] r91754 - /llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Daniel Dunbar
daniel at zuster.org
Fri Dec 18 19:31:51 PST 2009
Author: ddunbar
Date: Fri Dec 18 21:31:50 2009
New Revision: 91754
URL: http://llvm.org/viewvc/llvm-project?rev=91754&view=rev
Log:
Use memset instead of bzero, its more portable.
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c?rev=91754&r1=91753&r2=91754&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Fri Dec 18 21:31:50 2009
@@ -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 @@
void* loggerArg,
uint64_t startLoc,
DisassemblerMode mode) {
- bzero(insn, sizeof(struct InternalInstruction));
+ memset(insn, 0, sizeof(struct InternalInstruction));
insn->reader = reader;
insn->readerArg = readerArg;
More information about the llvm-commits
mailing list