From 44fccb7b50d3fb5e266b9fa391adf6d2912570f3 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 28 Aug 2015 21:59:00 +0000 Subject: [PATCH] [X86] NFC: Clean up and clang-format a few lines llvm-svn: 246340 --- .../Target/X86/Disassembler/X86DisassemblerDecoder.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp index e7a1d7dad982..a6073159f2d1 100644 --- a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp +++ b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp @@ -990,8 +990,8 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) { switch (insn->opcode) { case 0xE8: case 0xE9: - if (insn->opcodeType == - ONEBYTE) { // breaks psubsb and other mmx instructions otherwise + // Take care of psubsb and other mmx instructions. + if (insn->opcodeType == ONEBYTE) { attrMask ^= ATTR_OPSIZE; insn->immediateSize = 4; insn->displacementSize = 4; @@ -1011,11 +1011,11 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) { case 0x8D: case 0x8E: case 0x8F: - if (insn->opcodeType == - TWOBYTE) { // breaks lea and three byte ops otherwise + // Take care of lea and three byte ops. + if (insn->opcodeType == TWOBYTE) { attrMask ^= ATTR_OPSIZE; insn->immediateSize = 4; - insn->displacementSize = 4; // otherwise not sign extended + insn->displacementSize = 4; } break; }