[llvm] [NewPM][CodeGen] Add `MachineFunctionAnalysis` (PR #88610)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 21:52:46 PDT 2024


================
@@ -129,16 +142,6 @@ class FunctionAnalysisManagerMachineFunctionProxy
       Arg.FAM = nullptr;
     }
 
-    ~Result() {
-      // FAM is cleared in a moved from state where there is nothing to do.
-      if (!FAM)
-        return;
-
-      // Clear out the analysis manager if we're being destroyed -- it means we
-      // didn't even see an invalidate call when we got invalidated.
-      FAM->clear();
-    }
-
----------------
paperchalice wrote:

This causes double free.

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


More information about the llvm-commits mailing list