[cfe-commits] r163403 - /cfe/trunk/lib/Analysis/ThreadSafety.cpp
Chad Rosier
mcrosier at apple.com
Fri Sep 7 11:44:15 PDT 2012
Author: mcrosier
Date: Fri Sep 7 13:44:15 2012
New Revision: 163403
URL: http://llvm.org/viewvc/llvm-project?rev=163403&view=rev
Log:
Bring buildbots back. Fix scoping issue and coding style from r163397.
Modified:
cfe/trunk/lib/Analysis/ThreadSafety.cpp
Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/ThreadSafety.cpp?rev=163403&r1=163402&r2=163403&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/ThreadSafety.cpp (original)
+++ cfe/trunk/lib/Analysis/ThreadSafety.cpp Fri Sep 7 13:44:15 2012
@@ -821,17 +821,19 @@
}
LockData* findLock(FactManager& FM, const SExpr& M) const {
- for (const_iterator I=begin(), E=end(); I != E; ++I) {
- const SExpr& E = FM[*I].MutID;
- if (E.matches(M)) return &FM[*I].LDat;
+ for (const_iterator I = begin(), E = end(); I != E; ++I) {
+ const SExpr& Exp = FM[*I].MutID;
+ if (Exp.matches(M))
+ return &FM[*I].LDat;
}
return 0;
}
LockData* findLockUniv(FactManager& FM, const SExpr& M) const {
- for (const_iterator I=begin(), E=end(); I != E; ++I) {
- const SExpr& E = FM[*I].MutID;
- if (E.matches(M) || E.isUniversal()) return &FM[*I].LDat;
+ for (const_iterator I = begin(), E = end(); I != E; ++I) {
+ const SExpr& Exp = FM[*I].MutID;
+ if (Exp.matches(M) || Exp.isUniversal())
+ return &FM[*I].LDat;
}
return 0;
}
More information about the cfe-commits
mailing list