mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Changed SmallPtrSet.count guard + SmallPtrSet.insert to just SmallPtrSet.insert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
318cad3323
commit
f3c1335c59
@ -662,10 +662,9 @@ static bool DoesObjCBlockEscape(const Value *BlockPtr) {
|
||||
if (isa<BitCastInst>(UUser) || isa<GetElementPtrInst>(UUser) ||
|
||||
isa<PHINode>(UUser) || isa<SelectInst>(UUser)) {
|
||||
|
||||
if (!VisitedSet.count(UUser)) {
|
||||
if (!VisitedSet.insert(UUser)) {
|
||||
DEBUG(dbgs() << "DoesObjCBlockEscape: User copies value. Escapes "
|
||||
"if result escapes. Adding to list.\n");
|
||||
VisitedSet.insert(V);
|
||||
Worklist.push_back(UUser);
|
||||
} else {
|
||||
DEBUG(dbgs() << "DoesObjCBlockEscape: Already visited node.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user