[llvm] r266901 - [MC] Silence warning due to unused variable in !Debug builds.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 11:45:31 PDT 2016


Author: davide
Date: Wed Apr 20 13:45:31 2016
New Revision: 266901

URL: http://llvm.org/viewvc/llvm-project?rev=266901&view=rev
Log:
[MC] Silence warning due to unused variable in !Debug builds.

Modified:
    llvm/trunk/lib/Target/X86/X86MCInstLower.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=266901&r1=266900&r2=266901&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Wed Apr 20 13:45:31 2016
@@ -838,6 +838,7 @@ static unsigned EmitNop(MCStreamer &OS,
 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit,
                      const MCSubtargetInfo &STI) {
   unsigned NopsToEmit = NumBytes;
+  (void)NopsToEmit;
   while (NumBytes) {
     NumBytes -= EmitNop(OS, NumBytes, Is64Bit, STI);
     assert(NopsToEmit >= NumBytes && "Emitted more than I asked for!");




More information about the llvm-commits mailing list