llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Jinsong Ji (jsji)

<details>
<summary>Changes</summary>

Fix warning:

'std::vector' may not intend to support class template argument deduction 
[-Werror,-Wctad-maybe-unsupported]
 2030 |       std::vector Worklist{Module};


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


1 Files Affected:

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


``````````diff
diff --git a/clang/lib/Frontend/CompilerInstance.cpp 
b/clang/lib/Frontend/CompilerInstance.cpp
index cb3e6fb9688a9..436e6e70eec73 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1998,7 +1998,7 @@ 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<decltype(Module)> Worklist{Module};
       while (!Worklist.empty()) {
         auto *M = Worklist.back();
         Worklist.pop_back();

``````````

</details>


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

Reply via email to