summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2009-08-31 06:41:34 +0000
committerTanya Lattner <tonic@nondot.org>2009-08-31 06:41:34 +0000
commita001f10b04002a7786908fb86d3014223bc67ff6 (patch)
treed28a164d5b4dd56ae905479fd827dc7c9bc37bb7
parent887ea00a7c6de919b188a6b5aaddbfcdc51c9970 (diff)
Merge from mainlien.
Fix the start source location for type-specs like long, short, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_26@80559 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index db01ad094e..fcbb8e7a63 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1318,7 +1318,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;