diff options
author | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
commit | a26159261c3c18c0ea8ce413a4e2a69ecc80d49e (patch) | |
tree | 085a3f8189a1250e3780c414d7eeca36643662e8 /clang/lib/Sema/Sema.cpp | |
parent | 218388fb8d87c037eb019f339faff711dd03eb6f (diff) | |
download | bcm5719-llvm-a26159261c3c18c0ea8ce413a4e2a69ecc80d49e.tar.gz bcm5719-llvm-a26159261c3c18c0ea8ce413a4e2a69ecc80d49e.zip |
Add a CastKind enum to CastExpr. Right now it's not used for much but it will be :)
llvm-svn: 77650
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index f0aea430477..f7fce8527a2 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -217,7 +217,8 @@ void Sema::ImpCastExprToType(Expr *&Expr, QualType Ty, bool isLvalue) { ImpCast->setType(Ty); ImpCast->setLvalueCast(isLvalue); } else - Expr = new (Context) ImplicitCastExpr(Ty, Expr, isLvalue); + Expr = new (Context) ImplicitCastExpr(Ty, CastExpr::CK_Unknown, Expr, + isLvalue); } void Sema::DeleteExpr(ExprTy *E) { |