commit | a6b0907a71c66e6bf65e2477a6f9783d9fec4d47 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon May 17 23:46:49 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon May 17 23:46:49 2010 +0000 |
tree | 96a3b7915b7ddd129bdcea5498262b4ef446f25f | |
parent | 2fe0025a1300689b2d2517bb89ecadbab8b62ac5 [diff] [blame] |
Instantiate attributes on typedefs. This is a quick fix for PR7148, when we really need a proper audit of our handling of attributes in templates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103999 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 1280c0c..f3d3778 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -217,6 +217,7 @@ Typedef->setPreviousDeclaration(cast<TypedefDecl>(InstPrev)); } + InstantiateAttrs(D, Typedef); Typedef->setAccess(D->getAccess()); Owner->addDecl(Typedef);