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 153d9d83f15c1437cf8f67f5a41b0627bb3b4d28..a5a09ba1d6308cb7f090730d0038e12223abf4a9 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");
   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;
 }
   emitLittleEndian(Binary, OS);
   ++MCNumEmitted;
 }