[cfe-commits] r57963 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Wed Oct 22 07:31:16 PDT 2008


Test case please.  ;-)

On Oct 22, 2008, at 1:02 AM, Zhongxing Xu wrote:

> Author: zhongxingxu
> Date: Wed Oct 22 03:02:16 2008
> New Revision: 57963
>
> URL: http://llvm.org/viewvc/llvm-project?rev=57963&view=rev
> Log:
> Exprs of function type is another special case for ImplicitCast.
>
> Modified:
>    cfe/trunk/lib/Analysis/GRExprEngine.cpp
>
> Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=57963&r1=57962&r2=57963&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
> +++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Wed Oct 22 03:02:16 2008
> @@ -1435,8 +1435,8 @@
>   NodeSet S1;
>   QualType T = CastE->getType();
>   QualType ExTy = Ex->getType();
> -
> -  if (ExTy->isArrayType() || T->isReferenceType())
> +
> +  if (ExTy->isArrayType() || ExTy->isFunctionType() || T- 
> >isReferenceType())
>     VisitLValue(Ex, Pred, S1);
>   else
>     Visit(Ex, Pred, S1);
>
>
> _______________________________________________
> 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