aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-09 20:14:26 +0000
committerChris Lattner <sabre@nondot.org>2010-11-09 20:14:26 +0000
commit729ad83035f4e62eaec403fbdc7c1c843fa30f59 (patch)
tree725fd0f62d9558640ef43f40c8d9fa41d9623e25 /lib/Parse/ParseDecl.cpp
parentef9b1497908ab1684e04f244289f1ebe8d44274e (diff)
fix PR8380, a crash on invalid due to an illogical DeclSpec SourceRange being constructed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r--lib/Parse/ParseDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp
index 9e430a4296..7e01bacf5c 100644
--- a/lib/Parse/ParseDecl.cpp
+++ b/lib/Parse/ParseDecl.cpp
@@ -889,6 +889,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
AccessSpecifier AS,
DeclSpecContext DSContext) {
DS.SetRangeStart(Tok.getLocation());
+ DS.SetRangeEnd(Tok.getLocation());
while (1) {
bool isInvalid = false;
const char *PrevSpec = 0;