[llvm] r320889 - [TableGen][GlobalISel] Fix unused variable warning in release mode

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 15:24:37 PST 2017


Author: qcolombet
Date: Fri Dec 15 15:24:36 2017
New Revision: 320889

URL: http://llvm.org/viewvc/llvm-project?rev=320889&view=rev
Log:
[TableGen][GlobalISel] Fix unused variable warning in release mode

Introduced in r320887.

NFC.

Modified:
    llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=320889&r1=320888&r2=320889&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Fri Dec 15 15:24:36 2017
@@ -2226,6 +2226,7 @@ RuleMatcher::getOperandMatcher(StringRef
 void RuleMatcher::emitCaptureOpcodes(MatchTable &Table) {
   assert(Matchers.size() == 1 && "Cannot handle multi-root matchers yet");
   unsigned InsnVarID = implicitlyDefineInsnVar(*Matchers.front());
+  (void)InsnVarID;
   assert(Matchers.front()->getVarID() == InsnVarID &&
          "IDs differ between build and emit");
   Matchers.front()->emitCaptureOpcodes(Table, *this);




More information about the llvm-commits mailing list