Fix a warning on HexagonMCCodeEmitter::MCII. [-Wunused-private-field]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Feb 2015 09:58:29 +0000 (09:58 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Feb 2015 09:58:29 +0000 (09:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230170 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp

index 153d9d8..a5a09ba 100644 (file)
@@ -59,6 +59,7 @@ void HexagonMCCodeEmitter::EncodeInstruction(MCInst const &MI, raw_ostream &OS,
   uint64_t Binary = getBinaryCodeForInstr(MI, Fixups, STI) | getPacketBits(MI);
   assert(HexagonMCInstrInfo::getDesc(MCII, MI).getSize() == 4 &&
          "All instructions should be 32bit");
+  (void)&MCII;
   emitLittleEndian(Binary, OS);
   ++MCNumEmitted;
 }