Fixed a careless mistake.

rdar://13273675.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman 2013-02-23 00:31:32 +00:00
parent 3ce51a970f
commit 3603e9aa5e

View File

@ -218,7 +218,7 @@ static bool DoesRetainableObjPtrEscape(const User *Ptr) {
if (isa<BitCastInst>(UUser) || isa<GetElementPtrInst>(UUser) ||
isa<PHINode>(UUser) || isa<SelectInst>(UUser)) {
if (!VisitedSet.insert(UUser)) {
if (VisitedSet.insert(UUser)) {
DEBUG(dbgs() << "DoesRetainableObjPtrEscape: User copies value. "
"Ptr escapes if result escapes. Adding to list.\n");
Worklist.push_back(UUser);