Canonicalize the base class used in the nested-name-specifier of a generated

assignment operator.

llvm-svn: 149909
This commit is contained in:
Manuel Klimek 2012-02-06 21:51:39 +00:00
parent 8f66cdffa0
commit e716741f8b
1 changed files with 2 additions and 1 deletions

View File

@ -7601,9 +7601,10 @@ BuildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T,
// reference to operator=; this is required to suppress the virtual
// call mechanism.
CXXScopeSpec SS;
const Type *CanonicalT = S.Context.getCanonicalType(T.getTypePtr());
SS.MakeTrivial(S.Context,
NestedNameSpecifier::Create(S.Context, 0, false,
T.getTypePtr()),
CanonicalT),
Loc);
// Create the reference to operator=.