From 0919f9e8006020e33dc9a8169f2785c43ba16ba2 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 16 Aug 2008 10:21:33 +0000 Subject: [PATCH] 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 --- lib/Parse/ParseDecl.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0