Skip to content

Commit 6947fb4

Browse files
committed
[TableGen] Use structured binding in one place (NFC)
1 parent a10773c commit 6947fb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,18 +708,18 @@ void Filter::recurse() {
708708
}
709709

710710
// Otherwise, create sub choosers.
711-
for (const auto &Inst : FilteredIDs) {
711+
for (const auto &[FilterVal, EncodingIDs] : FilteredIDs) {
712712
// Marks all the segment positions with either BIT_TRUE or BIT_FALSE.
713713
for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex)
714-
BitValueArray[StartBit + bitIndex] = Inst.first & (1ULL << bitIndex)
714+
BitValueArray[StartBit + bitIndex] = FilterVal & (1ULL << bitIndex)
715715
? BitValue::BIT_TRUE
716716
: BitValue::BIT_FALSE;
717717

718718
// Delegates to an inferior filter chooser for further processing on this
719719
// category of instructions.
720720
FilterChooserMap.try_emplace(
721-
Inst.first,
722-
std::make_unique<FilterChooser>(Owner.AllInstructions, Inst.second,
721+
FilterVal,
722+
std::make_unique<FilterChooser>(Owner.AllInstructions, EncodingIDs,
723723
Owner.Operands, BitValueArray, Owner));
724724
}
725725
}

0 commit comments

Comments
 (0)