mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-13 06:34:24 +00:00
Fix a copy+pasto. No testcase, because the symptoms of dereferencing
an invalid iterator aren't reproducible. rdar://10614085. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
520dc78d92
commit
483716015f
@ -2504,7 +2504,7 @@ ObjCARCOpt::VisitTopDown(BasicBlock *BB,
|
||||
Pred = *PI++;
|
||||
if (Pred != BB) {
|
||||
I = BBStates.find(Pred);
|
||||
if (I == BBStates.end() || I->second.isVisitedTopDown())
|
||||
if (I != BBStates.end() && I->second.isVisitedTopDown())
|
||||
MyStates.MergePred(I->second);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user