diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index cb3e6fb9688a..9f1a3c56feec 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -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 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())