File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary) {
675
675
AllImports.insert (M);
676
676
// Ones that we import in the global module fragment or the private module
677
677
// fragment.
678
- llvm::for_each ( Primary->submodules (), [&AllImports](Module *SubM ) {
678
+ for (Module *SubM : Primary->submodules ()) {
679
679
assert ((SubM->isGlobalModule () || SubM->isPrivateModule ()) &&
680
680
" The sub modules of C++20 module unit should only be global module "
681
681
" fragments or private module framents." );
@@ -684,7 +684,7 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary) {
684
684
" not allowed to export import modules." );
685
685
for (Module *M : SubM->Imports )
686
686
AllImports.insert (M);
687
- });
687
+ }
688
688
689
689
SmallVector<llvm::Function *, 8 > ModuleInits;
690
690
for (Module *M : AllImports) {
You can’t perform that action at this time.
0 commit comments