From 31590f929eec2c4fbd09276b5f3a7038d5f3b3e2 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 29 Aug 2009 22:39:34 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0