Fixed a careless mistake.

rdar://13273675.

llvm-svn: 175939
This commit is contained in:
Michael Gottesman 2013-02-23 00:31:32 +00:00
parent 00be69ab5c
commit f4b7761ed7
1 changed files with 1 additions and 1 deletions

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);