Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions clang/lib/AST/VTableBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3736,8 +3736,7 @@ void MicrosoftVTableContext::computeVTableRelatedInformation(
}
}

MethodVFTableLocations.insert(NewMethodLocations.begin(),
NewMethodLocations.end());
MethodVFTableLocations.insert_range(NewMethodLocations);
if (Context.getLangOpts().DumpVTableLayouts)
dumpMethodLocations(RD, NewMethodLocations, llvm::outs());
}
Expand Down Expand Up @@ -3824,8 +3823,7 @@ const VirtualBaseInfo &MicrosoftVTableContext::computeVBTableRelatedInformation(
// virtual bases come first so that the layout is the same.
const VirtualBaseInfo &BaseInfo =
computeVBTableRelatedInformation(VBPtrBase);
VBI->VBTableIndices.insert(BaseInfo.VBTableIndices.begin(),
BaseInfo.VBTableIndices.end());
VBI->VBTableIndices.insert_range(BaseInfo.VBTableIndices);
}

// New vbases are added to the end of the vbtable.
Expand Down
3 changes: 1 addition & 2 deletions clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,7 @@ void CodeGenModule::Release() {
if (CXX20ModuleInits && Primary && !Primary->isHeaderLikeModule())
EmitModuleInitializers(Primary);
EmitDeferred();
DeferredDecls.insert(EmittedDeferredDecls.begin(),
EmittedDeferredDecls.end());
DeferredDecls.insert_range(EmittedDeferredDecls);
EmittedDeferredDecls.clear();
EmitVTablesOpportunistically();
applyGlobalValReplacements();
Expand Down
4 changes: 2 additions & 2 deletions clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ Expected<bool> getSymbolsFromBitcode(MemoryBufferRef Buffer, OffloadKind Kind,

// If the file gets extracted we update the table with the new symbols.
if (ShouldExtract)
Syms.insert(std::begin(TmpSyms), std::end(TmpSyms));
Syms.insert_range(TmpSyms);

return ShouldExtract;
}
Expand Down Expand Up @@ -1154,7 +1154,7 @@ Expected<bool> getSymbolsFromObject(const ObjectFile &Obj, OffloadKind Kind,

// If the file gets extracted we update the table with the new symbols.
if (ShouldExtract)
Syms.insert(std::begin(TmpSyms), std::end(TmpSyms));
Syms.insert_range(TmpSyms);

return ShouldExtract;
}
Expand Down