From 236082a0fe4dcd0362c5c74923a93e3db6a01291 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 05:45:37 +0800 Subject: [CodeGen] Align pass manager ownership --- backend/unittests/CodeGen/RegisterAllocationTestSupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/unittests/CodeGen/RegisterAllocationTestSupport.h') diff --git a/backend/unittests/CodeGen/RegisterAllocationTestSupport.h b/backend/unittests/CodeGen/RegisterAllocationTestSupport.h index 49c9e8a..d93b14e 100644 --- a/backend/unittests/CodeGen/RegisterAllocationTestSupport.h +++ b/backend/unittests/CodeGen/RegisterAllocationTestSupport.h @@ -436,7 +436,7 @@ public: const TargetRegisterAllocationInfo &Info, AllocatorKind Kind, RegisterAllocationOptions Options = {}) { - MachineAnalysisManager Analyses; + MachineFunctionAnalysisManager Analyses; auto Registered = registerStage11MachineAnalyses(Analyses); if (!Registered) return std::unexpected(Registered.error()); @@ -452,7 +452,7 @@ public: Pass = std::make_unique(Info, Options); break; } - MachinePassManager Pipeline; + MachineFunctionPassManager Pipeline; auto Added = Pipeline.addPass(std::move(Pass)); if (!Added) return std::unexpected(Added.error()); -- cgit v1.2.3