[llvm-commits] [llvm] r147098 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Dan Gohman
gohman at apple.com
Wed Dec 21 13:43:51 PST 2011
Author: djg
Date: Wed Dec 21 15:43:50 2011
New Revision: 147098
URL: http://llvm.org/viewvc/llvm-project?rev=147098&view=rev
Log:
Fix a copy+pasto. No testcase, because the symptoms of dereferencing
an invalid iterator aren't reproducible. rdar://10614085.
Modified:
llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=147098&r1=147097&r2=147098&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Wed Dec 21 15:43:50 2011
@@ -2504,7 +2504,7 @@
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);
}
}
More information about the llvm-commits
mailing list