Build fix
authorRichard Mitton <richard@codersnotes.com>
Fri, 30 Aug 2013 21:32:42 +0000 (21:32 +0000)
committerRichard Mitton <richard@codersnotes.com>
Fri, 30 Aug 2013 21:32:42 +0000 (21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189699 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/Disassembler/X86DisassemblerDecoder.c

index b63fd5aee3c7c7e993582af9df29180f67838116..20e61daf39ef4e52e48c24f0df89f158b46b5517 100644 (file)
@@ -305,6 +305,7 @@ static int readPrefixes(struct InternalInstruction* insn) {
   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 InternalInstruction* insn) {
     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))