diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-23 22:18:37 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-23 22:18:37 +0000 |
commit | 88465d3e996e627bbaa11099b039ddab66d5af2c (patch) | |
tree | af24459279b9dda86eea5d03ed91258e3c8b6dc1 /lib/Sema/SemaOverload.cpp | |
parent | f88b0d6c99e6473e78331271935986535dc4603c (diff) |
Add an InheritancePath parameter to the ImplicitCastExpr constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 2e35adb512..732b9ee3eb 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -2675,7 +2675,7 @@ Sema::PerformObjectArgumentInitialization(Expr *&From, return PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); if (!Context.hasSameType(From->getType(), DestType)) - ImpCastExprToType(From, DestType, CastExpr::CK_NoOp, + ImpCastExprToType(From, DestType, CastExpr::CK_NoOp, /*InheritancePath=*/0, /*isLvalue=*/!From->getType()->getAs<PointerType>()); return false; } @@ -3157,7 +3157,7 @@ Sema::AddConversionCandidate(CXXConversionDecl *Conversion, From->getLocStart()); ImplicitCastExpr ConversionFn(Context.getPointerType(Conversion->getType()), CastExpr::CK_FunctionToPointerDecay, - &ConversionRef, false); + &ConversionRef, /*InheritancePath=*/0, false); // Note that it is safe to allocate CallExpr on the stack here because // there are 0 arguments (i.e., nothing is allocated using ASTContext's @@ -6860,6 +6860,7 @@ Expr *Sema::FixOverloadedFunctionReference(Expr *E, DeclAccessPair Found, return new (Context) ImplicitCastExpr(ICE->getType(), ICE->getCastKind(), SubExpr, + /*InheritancePath=*/0, ICE->isLvalueCast()); } |