Skip to content

Commit 294eb76

Browse files
[TableGen] Fix a warning
This patch fixes an unused parameter warning with gcc7 under the release configuration.
1 parent 79eed76 commit 294eb76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,7 @@ static void insertBits(InsnType &field, InsnType bits, unsigned startBit,
21492149
unsigned numBits) {
21502150
if constexpr (std::is_integral<InsnType>::value) {
21512151
assert(startBit + numBits <= sizeof field * 8);
2152+
(void)numBits;
21522153
field |= (InsnType)bits << startBit;
21532154
} else {
21542155
field.insertBits(bits, startBit, numBits);

0 commit comments

Comments
 (0)