[llvm] r177910 - X86DisassemblerDecoder.c: Make this C89-compliant.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Mar 25 13:55:49 PDT 2013
Author: chapuni
Date: Mon Mar 25 15:55:49 2013
New Revision: 177910
URL: http://llvm.org/viewvc/llvm-project?rev=177910&view=rev
Log:
X86DisassemblerDecoder.c: Make this C89-compliant.
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=177910&r1=177909&r2=177910&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Mon Mar 25 15:55:49 2013
@@ -323,9 +323,9 @@ static int readPrefixes(struct InternalI
*/
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) {
More information about the llvm-commits
mailing list