diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/CallGraphUpdater.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CallGraphUpdater.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp b/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp index d0b89ba2606e..d0b9884aa909 100644 --- a/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp +++ b/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp @@ -120,6 +120,8 @@ void CallGraphUpdater::removeFunction(Function &DeadFn) { DeadCGN->removeAllCalledFunctions(); CGSCC->DeleteNode(DeadCGN); } + if (FAM) + FAM->clear(DeadFn, DeadFn.getName()); } void CallGraphUpdater::replaceFunctionWith(Function &OldFn, Function &NewFn) { |