diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-23 04:22:22 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-23 04:22:22 +0000 |
| commit | 47ad0171910013a0499e68145a04a977a4d2c9d4 (patch) | |
| tree | 7a142d99bcf0de782a1c6375a23a5ad22636e612 | |
| parent | 01ade177e944ba81794fdcaf01c41bd558a31ede (diff) | |
| download | bcm5719-llvm-47ad0171910013a0499e68145a04a977a4d2c9d4.tar.gz bcm5719-llvm-47ad0171910013a0499e68145a04a977a4d2c9d4.zip | |
Correct the starting location for instantiations of field declarations which
start with a cv-qualifier. DeclaratorDecl::getTypeSpecStartLoc() does not
produce the location of the first type-specifier (the cv-qualifier) in this
case, because we don't track source locations for cv-qualifiers.
No test here: I've not found a way to test this with a lit-style test, and
introducing a gtest test for this seems unwarranted. Suggestions welcome!
Patch by Daniel Jasper!
llvm-svn: 157311
| -rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 0182b3dcc40..e79c8916b41 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -431,7 +431,7 @@ Decl *TemplateDeclInstantiator::VisitFieldDecl(FieldDecl *D) { D->isMutable(), BitWidth, D->hasInClassInitializer(), - D->getTypeSpecStartLoc(), + D->getInnerLocStart(), D->getAccess(), 0); if (!Field) { |

