From f265ea92fdf30be16ca14cc22e8239d89c700620 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Sat, 7 Sep 2019 03:09:46 +0000 Subject: [PATCH] Remove stale TLI Module level pass registration Clang patch to adapt to LLVM changes in D66428 that make the TLI require a Function. There is no longer a module-level TargetLibraryAnalysis, so remove its registration git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371285 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/BackendUtil.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index caa65e2cee..4a2f298d4b 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -1093,7 +1093,6 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager( std::unique_ptr TLII( createTLII(TargetTriple, CodeGenOpts)); FAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); }); - MAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); }); // Register all the basic analyses with the managers. PB.registerModuleAnalyses(MAM); -- 2.40.0