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

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 12 08:56:49 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Jan Svoboda (jansvoboda11)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/181182.diff


1 Files Affected:

- (modified) clang/lib/Frontend/CompilerInstance.cpp (+2-2) 


``````````diff
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())

``````````

</details>


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


More information about the cfe-commits mailing list