forked from OSchip/llvm-project
Canonicalize the base class used in the nested-name-specifier of a generated
assignment operator. llvm-svn: 149909
This commit is contained in:
parent
8f66cdffa0
commit
e716741f8b
|
@ -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=.
|
||||
|
|
Loading…
Reference in New Issue