EscapeAnalysis: some new and changed utility functions to be used by alias analysis and ARC analysis.

This commit is contained in:
Erik Eckstein
2015-12-17 16:36:43 -08:00
parent fc08b60af4
commit ae6fa34645
3 changed files with 182 additions and 63 deletions

View File

@@ -290,7 +290,7 @@ bool StackPromoter::canPromoteAlloc(SILInstruction *AI,
SILInstruction *&DeallocInsertionPoint) {
AllocInsertionPoint = nullptr;
DeallocInsertionPoint = nullptr;
auto *Node = ConGraph->getNode(AI, EA);
auto *Node = ConGraph->getNodeOrNull(AI, EA);
if (!Node)
return false;