aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/Disassembler
diff options
context:
space:
mode:
authorRichard Mitton <richard@codersnotes.com>2013-08-30 21:32:42 +0000
committerRichard Mitton <richard@codersnotes.com>2013-08-30 21:32:42 +0000
commit06f9db01ba294cc0834fe7d6cc8180291822fa43 (patch)
treef37464352151b40125e69c68a9b14e1e05435637 /lib/Target/X86/Disassembler
parentd4b3168609d4a6dfb8a948d87dc61f83855ac604 (diff)
downloadexternal_llvm-06f9db01ba294cc0834fe7d6cc8180291822fa43.zip
external_llvm-06f9db01ba294cc0834fe7d6cc8180291822fa43.tar.gz
external_llvm-06f9db01ba294cc0834fe7d6cc8180291822fa43.tar.bz2
Build fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/Disassembler')
-rw-r--r--lib/Target/X86/Disassembler/X86DisassemblerDecoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
index b63fd5a..20e61da 100644
--- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
+++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
@@ -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))