]> granicus.if.org Git - clang/commitdiff
Make sure that we finish the DeclSpec when parsing a C++
authorDouglas Gregor <dgregor@apple.com>
Wed, 24 Feb 2010 23:13:13 +0000 (23:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 24 Feb 2010 23:13:13 +0000 (23:13 +0000)
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

lib/Parse/ParseExprCXX.cpp

index a72ab70d6cc8394b28f8fe0c8c68e5f9b281bd54..4d46b92a0349028a73632c03a631997401069303 100644 (file)
@@ -889,6 +889,7 @@ bool Parser::ParseCXXTypeSpecifierSeq(DeclSpec &DS) {
          ParsedTemplateInfo(), /*SuppressDeclarations*/true))
   {}
 
+  DS.Finish(Diags, PP);
   return false;
 }