[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

Tarun Prabhu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 16 06:53:24 PST 2025


================
@@ -131,6 +132,9 @@ class CompilerInstance : public ModuleLoader {
   /// The semantic analysis object.
   std::unique_ptr<Sema> TheSema;
 
+  /// Back-end pass plugins.
+  std::vector<llvm::PassPlugin *> PassPlugins;
----------------
tarunprabhu wrote:

Why does the CompilerInstance not own the loaded `llvm::PassPlugin` objects? The owner seems to be the `ExecuteCompilerInvocation` function.

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


More information about the llvm-branch-commits mailing list