diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-03-25 20:55:49 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-03-25 20:55:49 +0000 |
commit | a154371ecaf2fe6a7f034608542cce665534eb8b (patch) | |
tree | e87d23785a7f69b3bb738bd5a323e9547f314846 /lib/Target/X86 | |
parent | 8173c5e7c87cf42bbe760ac8ec9c068c6cb145cf (diff) |
X86DisassemblerDecoder.c: Make this C89-compliant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c index 3f4f18f0f7..e40edba6d6 100644 --- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c +++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c @@ -323,9 +323,9 @@ static int readPrefixes(struct InternalInstruction* insn) { */ if (insn->readerCursor - 1 == insn->startLocation && (byte == 0xf0 || byte == 0xf2 || byte == 0xf3)) { + uint8_t nextByte; if (byte == 0xf0) break; - uint8_t nextByte; if (lookAtByte(insn, &nextByte)) return -1; if (insn->mode == MODE_64BIT && (nextByte & 0xf0) == 0x40) { |