OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87764e1
)
[TableGen][GlobalISel] Fix unused variable warning in release mode
author
Quentin Colombet
<qcolombet@apple.com>
Fri, 15 Dec 2017 23:24:36 +0000
(23:24 +0000)
committer
Quentin 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
patch
|
blob
|
history
diff --git
a/utils/TableGen/GlobalISelEmitter.cpp
b/utils/TableGen/GlobalISelEmitter.cpp
index
4bbd463
..
b8ad152
100644
(file)
--- 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);