Changed isStoredObjCPointer => IsStoredObjCPointer. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman 2013-02-12 23:35:08 +00:00
parent ad19d9c422
commit 49b5bb4cb4

View File

@ -72,7 +72,7 @@ bool ProvenanceAnalysis::relatedPHI(const PHINode *A,
/// Test if the value of P, or any value covered by its provenance, is ever /// Test if the value of P, or any value covered by its provenance, is ever
/// stored within the function (not counting callees). /// stored within the function (not counting callees).
static bool isStoredObjCPointer(const Value *P) { static bool IsStoredObjCPointer(const Value *P) {
SmallPtrSet<const Value *, 8> Visited; SmallPtrSet<const Value *, 8> Visited;
SmallVector<const Value *, 8> Worklist; SmallVector<const Value *, 8> Worklist;
Worklist.push_back(P); Worklist.push_back(P);
@ -132,18 +132,18 @@ bool ProvenanceAnalysis::relatedCheck(const Value *A,
if (AIsIdentified) { if (AIsIdentified) {
// Check for an obvious escape. // Check for an obvious escape.
if (isa<LoadInst>(B)) if (isa<LoadInst>(B))
return isStoredObjCPointer(A); return IsStoredObjCPointer(A);
if (BIsIdentified) { if (BIsIdentified) {
// Check for an obvious escape. // Check for an obvious escape.
if (isa<LoadInst>(A)) if (isa<LoadInst>(A))
return isStoredObjCPointer(B); return IsStoredObjCPointer(B);
// Both pointers are identified and escapes aren't an evident problem. // Both pointers are identified and escapes aren't an evident problem.
return false; return false;
} }
} else if (BIsIdentified) { } else if (BIsIdentified) {
// Check for an obvious escape. // Check for an obvious escape.
if (isa<LoadInst>(A)) if (isa<LoadInst>(A))
return isStoredObjCPointer(B); return IsStoredObjCPointer(B);
} }
// Special handling for PHI and Select. // Special handling for PHI and Select.