]> granicus.if.org Git - clang/commitdiff
Fix the start source location for type-specs like long, short, etc.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 29 Aug 2009 22:39:34 +0000 (22:39 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 29 Aug 2009 22:39:34 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index 284dea2b754dfb260c43f085a2a0b0850f51d6f6..11bbe4e2dea03e0c0a9a810827622f9e988ee17a 100644 (file)
@@ -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;