[cfe-commits] r81913 - /cfe/trunk/lib/AST/DeclCXX.cpp
Douglas Gregor
dgregor at apple.com
Tue Sep 15 13:50:23 PDT 2009
Author: dgregor
Date: Tue Sep 15 15:50:23 2009
New Revision: 81913
URL: http://llvm.org/viewvc/llvm-project?rev=81913&view=rev
Log:
Make sure we're comparing the canonical types when we determine
whether a constructor is a copy constructor.
Sadly, I wasn't able to get down to a test case smaller than libstdc++'s
<string>.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=81913&r1=81912&r2=81913&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Tue Sep 15 15:50:23 2009
@@ -592,9 +592,10 @@
return false;
// Is it a reference to our class type?
- QualType PointeeType
+ CanQualType PointeeType
= Context.getCanonicalType(ParamRefType->getPointeeType());
- QualType ClassTy = Context.getTagDeclType(getParent());
+ CanQualType ClassTy
+ = Context.getCanonicalType(Context.getTagDeclType(getParent()));
if (PointeeType.getUnqualifiedType() != ClassTy)
return false;
More information about the cfe-commits
mailing list