]> granicus.if.org Git - clang/commitdiff
Tweak declaration...
authorSteve Naroff <snaroff@apple.com>
Tue, 28 Aug 2007 16:31:47 +0000 (16:31 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 28 Aug 2007 16:31:47 +0000 (16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41542 91177308-0d34-0410-b5e6-96231b3b80d8

Parse/ParseDecl.cpp
include/clang/Parse/Parser.h

index 9ac5f5f8910a4faab624ef4c4af0ae3a605d7211..1db426a93f146ec0256ba2ae9af2d5161cce7e55 100644 (file)
@@ -640,7 +640,7 @@ void Parser::ParseStructUnionSpecifier(DeclSpec &DS) {
 /// [GNU]   declarator[opt] ':' constant-expression attributes[opt]
 ///
 void Parser::ParseStructDeclaration(DeclTy *TagDecl,
-  llvm::SmallVector<DeclTy*, 32> &FieldDecls) {
+  llvm::SmallVectorImpl<DeclTy*> &FieldDecls) {
   // FIXME: When __extension__ is specified, disable extension diagnostics.
   if (Tok.getKind() == tok::kw___extension__)
     ConsumeToken();
index 81af83ce5459eb6b53c11e4dbb0ca0b156567859..9f419526fb0c5e9b6522e2cd8fc43a6ac2a5604c 100644 (file)
@@ -376,8 +376,8 @@ private:
   void ParseStructUnionBody(SourceLocation StartLoc, unsigned TagType,
                             DeclTy *TagDecl);
   void ParseStructDeclaration(DeclTy *TagDecl,
-     llvm::SmallVector<DeclTy*, 32> &FieldDecls);
-  
+                              llvm::SmallVectorImpl<DeclTy*> &FieldDecls);
+                              
   bool isDeclarationSpecifier() const;
   bool isTypeSpecifierQualifier() const;