mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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:
parent
3ce51a970f
commit
3603e9aa5e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user