From: Douglas Gregor Date: Wed, 24 Feb 2010 23:13:13 +0000 (+0000) Subject: Make sure that we finish the DeclSpec when parsing a C++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=396a9f235e160093b5f803f7a6a18fad7b68bdbe;p=clang Make sure that we finish the DeclSpec when parsing a C++ type-specifier-seq. Fixes some conditional-jump-on-unitialized-value errors in valgrind. Also counts as attempt #2 at making the MSVC buildbot happy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index a72ab70d6c..4d46b92a03 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -889,6 +889,7 @@ bool Parser::ParseCXXTypeSpecifierSeq(DeclSpec &DS) { ParsedTemplateInfo(), /*SuppressDeclarations*/true)) {} + DS.Finish(Diags, PP); return false; }