From d40ce7ac2bf5adedfc95b1c33fe2b170af737f36 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 22 Feb 2015 09:58:29 +0000 Subject: [PATCH] Fix a warning on HexagonMCCodeEmitter::MCII. [-Wunused-private-field] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230170 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp index 153d9d83f15..a5a09ba1d63 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp @@ -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; } -- 2.34.1