From: Argyrios Kyrtzidis Date: Sat, 16 Aug 2008 10:21:33 +0000 (+0000) Subject: Set the SourceRange ending of DeclSpec, when Parser::ParseTypeofSpecifier finishes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0919f9e8006020e33dc9a8169f2785c43ba16ba2;p=clang Set the SourceRange ending of DeclSpec, when Parser::ParseTypeofSpecifier finishes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54840 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index e5c8fe7627..def039b98d 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -1594,6 +1594,7 @@ void Parser::ParseTypeofSpecifier(DeclSpec &DS) { Result.Val)) Diag(StartLoc, diag::err_invalid_decl_spec_combination, PrevSpec); } + DS.SetRangeEnd(RParenLoc); }