diff options
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index a8782c16e0..e5e80db2be 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -783,16 +783,10 @@ static DeclRefExpr* EvalAddr(Expr *E) { // For casts, we need to handle conversions from arrays to // pointer values, and pointer-to-pointer conversions. - case Stmt::CastExprClass: + case Stmt::ExplicitCastExprClass: case Stmt::ImplicitCastExprClass: { - Expr* SubExpr; - - if (ImplicitCastExpr *IE = dyn_cast<ImplicitCastExpr>(E)) - SubExpr = IE->getSubExpr(); - else - SubExpr = cast<CastExpr>(E)->getSubExpr(); - + Expr* SubExpr = cast<CastExpr>(E)->getSubExpr(); QualType T = SubExpr->getType(); if (T->isPointerType() || T->isObjCQualifiedIdType()) |