From: Argyrios Kyrtzidis Date: Sat, 29 Aug 2009 22:39:34 +0000 (+0000) Subject: Fix the start source location for type-specs like long, short, etc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31590f929eec2c4fbd09276b5f3a7038d5f3b3e2;p=clang 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 --- 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(CurrTL); - DTL.setStartLoc(D.getDeclSpec().getTypeSpecTypeLoc()); + DTL.setStartLoc(D.getDeclSpec().getSourceRange().getBegin()); } return DInfo;