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
}
void CallGraphSCC::DeleteNode(CallGraphNode *Old) {
- ReplaceNode(Old, /* New */ nullptr);
+ ReplaceNode(Old, /*New=*/nullptr);
}
//===----------------------------------------------------------------------===//
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]);
}