File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -634,16 +634,14 @@ InstrBuilder::createInstrDescImpl(const MCInst &MCI,
634
634
bool IsVariadic = MCDesc.isVariadic ();
635
635
if ((ID->IsRecyclable = !IsVariadic && !IsVariant)) {
636
636
auto DKey = std::make_pair (MCI.getOpcode (), SchedClassID);
637
- Descriptors[DKey] = std::move (ID);
638
- return *Descriptors[DKey];
637
+ return *(Descriptors[DKey] = std::move (ID));
639
638
}
640
639
641
640
auto VDKey = std::make_pair (hashMCInst (MCI), SchedClassID);
642
641
assert (
643
642
!VariantDescriptors.contains (VDKey) &&
644
643
" Expected VariantDescriptors to not already have a value for this key." );
645
- VariantDescriptors[VDKey] = std::move (ID);
646
- return *VariantDescriptors[VDKey];
644
+ return *(VariantDescriptors[VDKey] = std::move (ID));
647
645
}
648
646
649
647
Expected<const InstrDesc &>
You can’t perform that action at this time.
0 commit comments