summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2017-12-15 23:24:36 +0000
committerQuentin Colombet <qcolombet@apple.com>2017-12-15 23:24:36 +0000
commite9ec3f0771bb49d00293f6d9c45de7dd5490a9f3 (patch)
tree9a4341e57747b81b87b80ff2e60cdf0b472484b3 /utils
parent87764e1e353cc989053bcb50289a312194f2739f (diff)
[TableGen][GlobalISel] Fix unused variable warning in release mode
Introduced in r320887. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/GlobalISelEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp
index 4bbd463a126..b8ad1527906 100644
--- a/utils/TableGen/GlobalISelEmitter.cpp
+++ b/utils/TableGen/GlobalISelEmitter.cpp
@@ -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);