diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-08-28 15:33:32 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-08-28 15:33:32 +0000 |
| commit | 228eea36a3598de7aeed807b00f4d49c1c7e28cc (patch) | |
| tree | 4f74fb4d55bf65d6c1dddc2f4474bdb96b717dcc /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | a1c728438c44ae9727d6bbedc4d1dcfdacb95122 (diff) | |
| download | bcm5719-llvm-228eea36a3598de7aeed807b00f4d49c1c7e28cc.tar.gz bcm5719-llvm-228eea36a3598de7aeed807b00f4d49c1c7e28cc.zip | |
Pass InOverloadResolution all the way down to IsPointerConversion.
llvm-svn: 80368
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 061ac8d2c33..61891e78833 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -890,13 +890,15 @@ Sema::PerformImplicitConversion(Expr *&From, QualType ToType, ICS = TryImplicitConversion(From, ToType, /*SuppressUserConversions=*/false, AllowExplicit, - /*ForceRValue=*/true); + /*ForceRValue=*/true, + /*InOverloadResolution=*/false); } if (ICS.ConversionKind == ImplicitConversionSequence::BadConversion) { ICS = TryImplicitConversion(From, ToType, /*SuppressUserConversions=*/false, AllowExplicit, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); } return PerformImplicitConversion(From, ToType, ICS, Flavor); } @@ -1259,7 +1261,8 @@ static bool TryClassUnification(Sema &Self, Expr *From, Expr *To, ICS = Self.TryImplicitConversion(From, TTy, /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); } return false; } @@ -1652,12 +1655,14 @@ QualType Sema::FindCompositePointerType(Expr *&E1, Expr *&E2) { TryImplicitConversion(E1, Composite1, /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); ImplicitConversionSequence E2ToC1 = TryImplicitConversion(E2, Composite1, /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); ImplicitConversionSequence E1ToC2, E2ToC2; E1ToC2.ConversionKind = ImplicitConversionSequence::BadConversion; @@ -1667,11 +1672,13 @@ QualType Sema::FindCompositePointerType(Expr *&E1, Expr *&E2) { E1ToC2 = TryImplicitConversion(E1, Composite2, /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); E2ToC2 = TryImplicitConversion(E2, Composite2, /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, - /*ForceRValue=*/false); + /*ForceRValue=*/false, + /*InOverloadResolution=*/false); } bool ToC1Viable = E1ToC1.ConversionKind != |

