]> granicus.if.org Git - clang/commitdiff
Unbreak tests. I'll look into why this is necessary later.
authorEli Friedman <eli.friedman@gmail.com>
Sun, 30 Aug 2009 00:53:54 +0000 (00:53 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 30 Aug 2009 00:53:54 +0000 (00:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80468 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplateInstantiateDecl.cpp

index 9785fb2653e7e506c42297feccfc969da0a57177..aa116b225d68cb694df7e2191f1bcf937fdfd167 100644 (file)
@@ -1137,6 +1137,7 @@ Sema::InstantiateMemInitializers(CXXConstructorDecl *New,
       QualType BaseType(Init->getBaseClass(), 0);
       BaseType = SubstType(BaseType, TemplateArgs, Init->getSourceLocation(),
                            New->getDeclName());
+      BaseType = Context.getCanonicalType(BaseType);
 
       NewInit = BuildBaseInitializer(BaseType,
                                      (Expr **)NewArgs.data(),