File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ void LinkerScript::processSectionCommands() {
797
797
if (!potentialSpillLists.empty ()) {
798
798
DenseSet<StringRef> insertNames;
799
799
for (InsertCommand &ic : insertCommands)
800
- insertNames.insert (ic.names . begin (), ic. names . end () );
800
+ insertNames.insert_range (ic.names );
801
801
for (SectionCommand *&base : sectionCommands) {
802
802
auto *osd = dyn_cast<OutputDesc>(base);
803
803
if (!osd)
Original file line number Diff line number Diff line change @@ -588,15 +588,15 @@ void Writer::populateTargetFeatures() {
588
588
589
589
if (ctx.arg .extraFeatures .has_value ()) {
590
590
auto &extraFeatures = *ctx.arg .extraFeatures ;
591
- allowed.insert (extraFeatures. begin (), extraFeatures. end () );
591
+ allowed.insert_range (extraFeatures);
592
592
}
593
593
594
594
// Only infer used features if user did not specify features
595
595
bool inferFeatures = !ctx.arg .features .has_value ();
596
596
597
597
if (!inferFeatures) {
598
598
auto &explicitFeatures = *ctx.arg .features ;
599
- allowed.insert (explicitFeatures. begin (), explicitFeatures. end () );
599
+ allowed.insert_range (explicitFeatures);
600
600
if (!ctx.arg .checkFeatures )
601
601
goto done;
602
602
}
You can’t perform that action at this time.
0 commit comments