[llvm] [NewPM] Add `FunctionToMachineFunctionPassAdaptor` (PR #88711)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 00:02:59 PDT 2024


================
@@ -129,16 +129,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 destruction issue when destruct analysis managers.

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


More information about the llvm-commits mailing list