diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-18 23:01:59 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-18 23:01:59 +0000 |
commit | 0835a3cdeefe714b4959d31127ea155e56393125 (patch) | |
tree | b5ae4b640f3664473f10df485dab4015331c7df8 /lib/Analysis/Environment.cpp | |
parent | 4f3278fe397250b75ba5a0b5a6cf98309bd2ad2c (diff) |
Add ExplicitCastExpr to replace the current CastExpr, and have ImplicitCastExpr and ExplicitCastExpr derive from a common base class (CastExpr):
Expr
-> CastExpr
-> ExplicitCastExpr
-> ImplicitCastExpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Environment.cpp')
-rw-r--r-- | lib/Analysis/Environment.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/Analysis/Environment.cpp b/lib/Analysis/Environment.cpp index dd5caef7f0..7f6fbd3051 100644 --- a/lib/Analysis/Environment.cpp +++ b/lib/Analysis/Environment.cpp @@ -47,19 +47,8 @@ RVal Environment::GetRVal(Expr* E, BasicValueFactory& BasicVals) const { // are no-ops. We blast through these to get the descendant // subexpression that has a value. - case Stmt::ImplicitCastExprClass: { - ImplicitCastExpr* C = cast<ImplicitCastExpr>(E); - QualType CT = C->getType(); - - if (CT->isVoidType()) - return UnknownVal(); - - QualType ST = C->getSubExpr()->getType(); - - break; - } - - case Stmt::CastExprClass: { + case Stmt::ImplicitCastExprClass: + case Stmt::ExplicitCastExprClass: { CastExpr* C = cast<CastExpr>(E); QualType CT = C->getType(); QualType ST = C->getSubExpr()->getType(); |