OSDN Git Service

[TableGen][GlobalISel] Fix unused variable warning in release mode
authorQuentin Colombet <qcolombet@apple.com>
Fri, 15 Dec 2017 23:24:36 +0000 (23:24 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 15 Dec 2017 23:24:36 +0000 (23:24 +0000)
Introduced in r320887.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320889 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/GlobalISelEmitter.cpp

index 4bbd463..b8ad152 100644 (file)
@@ -2226,6 +2226,7 @@ RuleMatcher::getOperandMatcher(StringRef Name) const {
 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);