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;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits