[llvm-branch-commits] [cfe-branch] r80559 - /cfe/branches/release_26/lib/Sema/SemaType.cpp

Tanya Lattner tonic at nondot.org
Sun Aug 30 23:41:35 PDT 2009


Author: tbrethou
Date: Mon Aug 31 01:41:34 2009
New Revision: 80559

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


Modified:
    cfe/branches/release_26/lib/Sema/SemaType.cpp

Modified: cfe/branches/release_26/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_26/lib/Sema/SemaType.cpp?rev=80559&r1=80558&r2=80559&view=diff

==============================================================================
--- cfe/branches/release_26/lib/Sema/SemaType.cpp (original)
+++ cfe/branches/release_26/lib/Sema/SemaType.cpp Mon Aug 31 01:41:34 2009
@@ -1318,7 +1318,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 llvm-branch-commits mailing list