[llvm] InstructionSelect: Use GISelChangeObserver instead of MachineFunction::Delegate (PR #105725)

Tobias Stadler via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 16:19:46 PDT 2024


================
@@ -215,6 +220,7 @@ bool InstructionSelect::selectMachineFunction(MachineFunction &MF) {
         LLVM_DEBUG(MIIMaintainer.reportFullyCreatedInstrs());
       }
     }
+    AllObservers.removeObserver(&MIIMaintainer);
----------------
tobias-stadler wrote:

Not needed. The ObserverWrapper goes out of scope immediately after this line.

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


More information about the llvm-commits mailing list