]> granicus.if.org Git - clang/commitdiff
Set the SourceRange ending of DeclSpec, when Parser::ParseTypeofSpecifier finishes.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 16 Aug 2008 10:21:33 +0000 (10:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 16 Aug 2008 10:21:33 +0000 (10:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54840 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index e5c8fe7627222513ee816b826f3c89d68237f4a2..def039b98d609c425b696774301c9c616a354bdf 100644 (file)
@@ -1594,6 +1594,7 @@ void Parser::ParseTypeofSpecifier(DeclSpec &DS) {
                            Result.Val))
       Diag(StartLoc, diag::err_invalid_decl_spec_combination, PrevSpec);
   }
+  DS.SetRangeEnd(RParenLoc);
 }