[llvm] [CodeGen] Make MCContext in MachineModuleInfo a unique_ptr. (PR #104834)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 13:23:08 PDT 2024


================
@@ -124,10 +124,10 @@ class MachineModuleInfo {
   const LLVMTargetMachine &getTarget() const { return TM; }
 
   const MCContext &getContext() const {
-    return ExternalContext ? *ExternalContext : Context;
+    return ExternalContext ? *ExternalContext : *Context;
----------------
arsenm wrote:

I'd say it's the same scope, for what should own the MCContext 

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


More information about the llvm-commits mailing list