[cfe-commits] r64962 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Ted Kremenek
kremenek at apple.com
Wed Feb 18 14:17:20 PST 2009
Author: kremenek
Date: Wed Feb 18 16:17:20 2009
New Revision: 64962
URL: http://llvm.org/viewvc/llvm-project?rev=64962&view=rev
Log:
Fix diagnostics bugs when computing ranges for the retain/release checker.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=64962&r1=64961&r2=64962&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Wed Feb 18 16:17:20 2009
@@ -2462,7 +2462,10 @@
if (Expr* Exp = dyn_cast_or_null<Expr>(*I)) {
SVal X = CurrSt.GetSVal(Exp);
if (loc::SymbolVal* SV = dyn_cast<loc::SymbolVal>(&X))
- if (SV->getSymbol() == Sym) P->addRange(Exp->getSourceRange()); break;
+ if (SV->getSymbol() == Sym) {
+ P->addRange(Exp->getSourceRange());
+ break;
+ }
}
return P;
More information about the cfe-commits
mailing list