diff options
author | Steve Naroff <snaroff@apple.com> | 2009-07-14 14:58:18 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-07-14 14:58:18 +0000 |
commit | ea218b8e8f9ba82d1c76bcb7e86d121a5f65ebed (patch) | |
tree | f99a9a206cec20abda08741b4f3e77499238fdb6 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 1a75ee270941dd8b5c7fdd23dffb5e81a0fd7290 (diff) |
Add a "TypeSpecStartLoc" to FieldDecl. Patch contributed by Enea Zaffanella.
Note: One day, it might be useful to consider adding this info to DeclGroup (as the comments in FunctionDecl/VarDecl suggest). For now, I think this works fine. I considered moving this to ValueDecl (a common ancestor of FunctionDecl/VarDecl/FieldDecl), however this would add overhead to EnumConstantDecl (which would burn memory and isn't necessary).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75635 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 f597199920..1f58568580 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -182,6 +182,7 @@ Decl *TemplateDeclInstantiator::VisitFieldDecl(FieldDecl *D) { D->getLocation(), D->isMutable(), BitWidth, + D->getTypeSpecStartLoc(), D->getAccess(), 0); if (Field) { |