diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-08-30 00:53:54 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-08-30 00:53:54 +0000 |
commit | af496acbae62ad51bf42b40eea8ea8ebe48c5dbb (patch) | |
tree | a217fc3db0c72a50e294fb1a3724192f293ea912 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 31590f929eec2c4fbd09276b5f3a7038d5f3b3e2 (diff) |
Unbreak tests. I'll look into why this is necessary later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 9785fb2653..aa116b225d 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -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(), |