aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-04-09 15:43:31 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-04-15 21:26:35 -0500
commitdf675890b7633ae8677b86be8a47ac21deb8b669 (patch)
tree530e57a2283d84a138b8845d8e8ac0aa9c667829 /llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
parent322ac2e9173a6fc778f10cf528c676c9159d893f (diff)
downloadllvm-df675890b7633ae8677b86be8a47ac21deb8b669.zip
llvm-df675890b7633ae8677b86be8a47ac21deb8b669.tar.gz
llvm-df675890b7633ae8677b86be8a47ac21deb8b669.tar.bz2
[CallGraphUpdater][NFC] Minor updates to D77855
I uploaded the old version accidentally instead of the one with these minor adjustments requested by the reviewers. Differential Revision: https://reviews.llvm.org/D77855
Diffstat (limited to 'llvm/lib/Transforms/Utils/CallGraphUpdater.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CallGraphUpdater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp b/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
index 219c46d..8cdf01e 100644
--- a/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
+++ b/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
@@ -112,7 +112,7 @@ void CallGraphUpdater::removeFunction(Function &DeadFn) {
DeadFunctions.push_back(&DeadFn);
// For the old call graph we remove the function from the SCC right away.
- if (CGSCC && !ReplacedFunctions.count(&DeadFn))
+ if (CG && !ReplacedFunctions.count(&DeadFn))
CGSCC->DeleteNode((*CG)[&DeadFn]);
}