An objc_retain can serve as a may-use for a different pointer.

rdar://11931823.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2012-07-23 19:27:31 +00:00
parent ec5e97f5c8
commit c72d3be389
2 changed files with 28 additions and 1 deletions

View File

@@ -2829,7 +2829,10 @@ ObjCARCOpt::VisitInstructionTopDown(Instruction *Inst,
}
S.IncrementNestCount();
return NestingDetected;
// A retain can be a potential use; procede to the generic checking
// code below.
break;
}
case IC_Release: {
Arg = GetObjCArg(Inst);