[cfe-commits] r80448 - /cfe/trunk/lib/Sema/SemaType.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Sat Aug 29 15:39:34 PDT 2009


Author: akirtzidis
Date: Sat Aug 29 17:39:34 2009
New Revision: 80448

URL: http://llvm.org/viewvc/llvm-project?rev=80448&view=rev
Log:
Fix the start source location for type-specs like long, short, etc.

Modified:
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=80448&r1=80447&r2=80448&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Sat Aug 29 17:39:34 2009
@@ -1319,7 +1319,7 @@
   } else {
     //FIXME: Other typespecs.
     DefaultTypeSpecLoc &DTL = cast<DefaultTypeSpecLoc>(CurrTL);
-    DTL.setStartLoc(D.getDeclSpec().getTypeSpecTypeLoc());
+    DTL.setStartLoc(D.getDeclSpec().getSourceRange().getBegin());
   }
 
   return DInfo;





More information about the cfe-commits mailing list