[TableGen] Fix a warning

This patch fixes an unused parameter warning with gcc7 under the
release configuration.
This commit is contained in:
Kazu Hirata
2025-05-12 23:18:30 -07:00
parent 79eed76c58
commit 294eb7670f

View File

@@ -2149,6 +2149,7 @@ static void insertBits(InsnType &field, InsnType bits, unsigned startBit,
unsigned numBits) {
if constexpr (std::is_integral<InsnType>::value) {
assert(startBit + numBits <= sizeof field * 8);
(void)numBits;
field |= (InsnType)bits << startBit;
} else {
field.insertBits(bits, startBit, numBits);