diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-12-22 00:34:07 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-12-22 00:34:07 +0000 |
| commit | 507eb87f05bf20310ebb24e2ddb7b5517f909a62 (patch) | |
| tree | c3342da9c0537786f082f226a3eda42709cb1aa6 /clang/lib/Sema/SemaOverload.cpp | |
| parent | 4141d5bea240f3a01a01c94a778c6b4c4e839847 (diff) | |
| download | bcm5719-llvm-507eb87f05bf20310ebb24e2ddb7b5517f909a62.tar.gz bcm5719-llvm-507eb87f05bf20310ebb24e2ddb7b5517f909a62.zip | |
Eliminate the ASTContext argument to CXXConstructorDecl::isCopyConstructor, since the context is available in the Decl
llvm-svn: 91862
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 66aa4845b12..8236ad7eecb 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -451,7 +451,7 @@ Sema::TryImplicitConversion(Expr* From, QualType ToType, QualType FromCanon = Context.getCanonicalType(From->getType().getUnqualifiedType()); QualType ToCanon = Context.getCanonicalType(ToType).getUnqualifiedType(); - if (Constructor->isCopyConstructor(Context) && + if (Constructor->isCopyConstructor() && (FromCanon == ToCanon || IsDerivedFrom(FromCanon, ToCanon))) { // Turn this into a "standard" conversion sequence, so that it // gets ranked with standard conversion sequences. |

