[cfe-commits] r142832 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/Sema/i-c-e.c test/SemaCXX/i-c-e-cxx.cpp

John McCall rjmccall at apple.com
Mon Oct 24 17:03:32 PDT 2011


On Oct 24, 2011, at 11:26 AM, Richard Smith wrote:
> Modified: cfe/trunk/lib/AST/ExprConstant.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=142832&r1=142831&r2=142832&view=diff
> ==============================================================================
> --- cfe/trunk/lib/AST/ExprConstant.cpp (original)
> +++ cfe/trunk/lib/AST/ExprConstant.cpp Mon Oct 24 13:26:35 2011
> @@ -3114,9 +3114,12 @@
>   case Expr::CXXFunctionalCastExprClass:
>   case Expr::CXXStaticCastExprClass:
>   case Expr::CXXReinterpretCastExprClass:
> -  case Expr::CXXConstCastExprClass: 
> +  case Expr::CXXConstCastExprClass:
>   case Expr::ObjCBridgedCastExprClass: {
>     const Expr *SubExpr = cast<CastExpr>(E)->getSubExpr();
> +    if (E->getStmtClass() != Expr::ImplicitCastExprClass &&

!isa<ImplicitCastExpr>(E) or isa<ExplicitCastExpr>(E), please.

John.



More information about the cfe-commits mailing list