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

Zhongxing Xu xuzhongxing at gmail.com
Wed Oct 22 01:02:16 PDT 2008


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);





More information about the cfe-commits mailing list