[cfe-commits] r64962 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Chris Lattner
clattner at apple.com
Wed Feb 18 14:22:13 PST 2009
On Feb 18, 2009, at 2:17 PM, Ted Kremenek wrote:
> 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.
indentation by 4?
-Chris
>
>
> 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;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list