aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-08-29 22:39:34 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-08-29 22:39:34 +0000
commit31590f929eec2c4fbd09276b5f3a7038d5f3b3e2 (patch)
tree9f566c4b11e7a9eee8260986cee3b9612b3151b7 /lib/Sema/SemaType.cpp
parent19a97e27a545959ee9b395a96140661148a6b5b0 (diff)
Fix the start source location for type-specs like long, short, etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index 284dea2b75..11bbe4e2de 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1319,7 +1319,7 @@ Sema::GetDeclaratorInfoForDeclarator(Declarator &D, QualType T, unsigned Skip) {
} else {
//FIXME: Other typespecs.
DefaultTypeSpecLoc &DTL = cast<DefaultTypeSpecLoc>(CurrTL);
- DTL.setStartLoc(D.getDeclSpec().getTypeSpecTypeLoc());
+ DTL.setStartLoc(D.getDeclSpec().getSourceRange().getBegin());
}
return DInfo;