[clang] [clang][CodeGen] Remove now-unused FileManager variable (PR #91495)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 8 09:09:08 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-codegen

Author: Jacob Lambert (lamb-j)

<details>
<summary>Changes</summary>

Fixes "error: private field 'FileMgr' is not used"

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


1 Files Affected:

- (modified) clang/lib/CodeGen/BackendConsumer.h (-1) 


``````````diff
diff --git a/clang/lib/CodeGen/BackendConsumer.h b/clang/lib/CodeGen/BackendConsumer.h
index f9edbe901bb8..7dce21e743f7 100644
--- a/clang/lib/CodeGen/BackendConsumer.h
+++ b/clang/lib/CodeGen/BackendConsumer.h
@@ -34,7 +34,6 @@ class BackendConsumer : public ASTConsumer {
   const CodeGenOptions &CodeGenOpts;
   const TargetOptions &TargetOpts;
   const LangOptions &LangOpts;
-  const FileManager &FileMgr;
   std::unique_ptr<raw_pwrite_stream> AsmOutStream;
   ASTContext *Context;
   IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS;

``````````

</details>


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


More information about the cfe-commits mailing list