[llvm] r189699 - Build fix
Richard Mitton
richard at codersnotes.com
Fri Aug 30 14:32:42 PDT 2013
Author: rmitton
Date: Fri Aug 30 16:32:42 2013
New Revision: 189699
URL: http://llvm.org/viewvc/llvm-project?rev=189699&view=rev
Log:
Build fix
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=189699&r1=189698&r2=189699&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Fri Aug 30 16:32:42 2013
@@ -305,6 +305,7 @@ static int readPrefixes(struct InternalI
BOOL prefixGroups[4] = { FALSE };
uint64_t prefixLocation;
uint8_t byte = 0;
+ uint8_t nextByte;
BOOL hasAdSize = FALSE;
BOOL hasOpSize = FALSE;
@@ -325,7 +326,6 @@ static int readPrefixes(struct InternalI
if (insn->readerCursor - 1 == insn->startLocation && byte == 0xf0)
break;
- uint8_t nextByte;
if (insn->readerCursor - 1 == insn->startLocation
&& (byte == 0xf2 || byte == 0xf3)
&& !lookAtByte(insn, &nextByte))
More information about the llvm-commits
mailing list