forked from OSchip/llvm-project
[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
This commit is contained in:
parent
322ac2e917
commit
df675890b7
|
@ -563,7 +563,7 @@ void CallGraphSCC::ReplaceNode(CallGraphNode *Old, CallGraphNode *New) {
|
|||
}
|
||||
|
||||
void CallGraphSCC::DeleteNode(CallGraphNode *Old) {
|
||||
ReplaceNode(Old, /* New */ nullptr);
|
||||
ReplaceNode(Old, /*New=*/nullptr);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue