[cfe-commits] r149909 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Manuel Klimek
klimek at google.com
Mon Feb 6 13:51:40 PST 2012
Author: klimek
Date: Mon Feb 6 15:51:39 2012
New Revision: 149909
URL: http://llvm.org/viewvc/llvm-project?rev=149909&view=rev
Log:
Canonicalize the base class used in the nested-name-specifier of a generated
assignment operator.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=149909&r1=149908&r2=149909&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Feb 6 15:51:39 2012
@@ -7601,9 +7601,10 @@
// 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=.
More information about the cfe-commits
mailing list