https://github.com/jansvoboda11 created 
https://github.com/llvm/llvm-project/pull/181182

None

>From c05c9a11cbd8a8f1a4496e94fb4524d82489225b Mon Sep 17 00:00:00 2001
From: Jan Svoboda <[email protected]>
Date: Thu, 12 Feb 2026 08:55:31 -0800
Subject: [PATCH] [clang][modules] Don't rely on `std::vector` CTAD

---
 clang/lib/Frontend/CompilerInstance.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/lib/Frontend/CompilerInstance.cpp 
b/clang/lib/Frontend/CompilerInstance.cpp
index cb3e6fb9688a9..9f1a3c56feec1 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<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())

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to