diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-10 21:30:22 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-10 21:30:22 +0000 |
commit | bd0fb30fa2a039439d1a30a83ea896801394d780 (patch) | |
tree | 7625f5bc1646aa3a1451dd54dc9317f0b044c2c1 /lib/Sema/Sema.cpp | |
parent | 797c3c4f5dc4fda735e55c6b5d6270a54cf6d263 (diff) |
Add a CastInfo struct that will be used for cast information when constructing cast expressions. Right now it only stores the cast kind, but in the future it might store conversion functions and constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index b839e76969..53a5f6d80f 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -195,7 +195,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, /// If there is already an implicit cast, merge into the existing one. /// If isLvalue, the result of the cast is an lvalue. void Sema::ImpCastExprToType(Expr *&Expr, QualType Ty, - CastExpr::CastKind Kind, bool isLvalue) { + const CastExpr::CastInfo &Info, bool isLvalue) { QualType ExprTy = Context.getCanonicalType(Expr->getType()); QualType TypeTy = Context.getCanonicalType(Ty); @@ -218,7 +218,7 @@ void Sema::ImpCastExprToType(Expr *&Expr, QualType Ty, ImpCast->setType(Ty); ImpCast->setLvalueCast(isLvalue); } else - Expr = new (Context) ImplicitCastExpr(Ty, Kind, Expr, + Expr = new (Context) ImplicitCastExpr(Ty, Info, Expr, isLvalue); } |