[clang] [Frontend] Move -mllvm and loading of plugins to address a fixme. NFC (PR #192476)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 17 06:22:23 PDT 2026


================
@@ -418,6 +418,8 @@ void dependencies::initializeScanCompilerInstance(
     DiagnosticConsumer *DiagConsumer, DependencyScanningService &Service,
     IntrusiveRefCntPtr<DependencyScanningWorkerFilesystem> DepFS) {
   ScanInstance.setBuildingModule(false);
+  // LLVM options are not going to affect dependency scanning.
+  ScanInstance.getFrontendOpts().LLVMArgs.clear();
----------------
vgvassilev wrote:

I am also a bit confused -- somehow we have llvm options already passed but we do not initialize any targets. Let me put another version of my patch without changing the clients code...

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


More information about the cfe-commits mailing list