[clang][modules] Don't rely on std::vector CTAD (#181182)

This commit is contained in:
Jan Svoboda 2026-02-12 10:22:49 -08:00 committed by GitHub
parent e087d42882
commit f724d867e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1998,9 +1998,9 @@ CompilerInstance::loadModule(SourceLocation ImportLoc,
PPCb->moduleLoadSkipped(Module);
// Mark the module and its submodules as if they were loaded from a PCM.
// This prevents emission of the "missing submodule" diagnostic below.
std::vector Worklist{Module};
std::vector<clang::Module *> Worklist{Module};
while (!Worklist.empty()) {
auto *M = Worklist.back();
clang::Module *M = Worklist.back();
Worklist.pop_back();
M->IsFromModuleFile = true;
for (auto *SubM : M->submodules())