Clean up, as suggested by John.

llvm-svn: 142884
This commit is contained in:
Richard Smith 2011-10-25 00:21:54 +00:00
parent c44b95c3b5
commit 2d7bb04788
1 changed files with 1 additions and 1 deletions

View File

@ -3102,7 +3102,7 @@ static ICEDiag CheckICE(const Expr* E, ASTContext &Ctx) {
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()) {