Add, and infer, a nofree function attribute
authorBrian Homerding <homerdin@gmail.com>
Mon, 8 Jul 2019 16:33:32 +0000 (16:33 +0000)
committerBrian Homerding <homerdin@gmail.com>
Mon, 8 Jul 2019 16:33:32 +0000 (16:33 +0000)
Removing dead code leftover from refactor.

Reviewers: jdoerfert

Differential Revision: https://reviews.llvm.org/D49165

llvm-svn: 365345

llvm/lib/Transforms/IPO/FunctionAttrs.cpp

index a3fb7d1..cfae267 100644 (file)
@@ -1402,11 +1402,6 @@ PreservedAnalyses PostOrderFunctionAttrsPass::run(LazyCallGraph::SCC &C,
   FunctionAnalysisManager &FAM =
       AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager();
 
-  const ModuleAnalysisManager &MAM =
-      AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager();
-  assert(C.size() > 0 && "Cannot handle an empty SCC!");
-  Module &M = *C.begin()->getFunction().getParent();
-
   // We pass a lambda into functions to wire them up to the analysis manager
   // for getting function analyses.
   auto AARGetter = [&](Function &F) -> AAResults & {