[cfe-commits] r142884 - /cfe/trunk/lib/AST/ExprConstant.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Mon Oct 24 17:21:54 PDT 2011
Author: rsmith
Date: Mon Oct 24 19:21:54 2011
New Revision: 142884
URL: http://llvm.org/viewvc/llvm-project?rev=142884&view=rev
Log:
Clean up, as suggested by John.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=142884&r1=142883&r2=142884&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Mon Oct 24 19:21:54 2011
@@ -3102,7 +3102,7 @@
case Expr::CXXConstCastExprClass:
case Expr::ObjCBridgedCastExprClass: {
const Expr *SubExpr = cast<CastExpr>(E)->getSubExpr();
- if (E->getStmtClass() != Expr::ImplicitCastExprClass &&
+ if (isa<ExplicitCastExpr>(E) &&
isa<FloatingLiteral>(SubExpr->IgnoreParenImpCasts()))
return NoDiag();
switch (cast<CastExpr>(E)->getCastKind()) {
More information about the cfe-commits
mailing list