]> granicus.if.org Git - clang/commitdiff
Remove unused variable. Thanks to Dmitri Gribenko for noticing it.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 12 May 2012 16:35:00 +0000 (16:35 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 12 May 2012 16:35:00 +0000 (16:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156715 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 93516501aacef6e3db4b36b228e2c917f8f81c6e..de0e2d97b4ad548bde4d2e6e4530636abda86f3d 100644 (file)
@@ -4023,10 +4023,8 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
 void Sema::ProcessDeclAttributeList(Scope *S, Decl *D,
                                     const AttributeList *AttrList,
                                     bool NonInheritable, bool Inheritable) {
-  SmallVector<const AttributeList*, 4> attrs;
   for (const AttributeList* l = AttrList; l; l = l->getNext()) {
     ProcessDeclAttribute(*this, S, D, *l, NonInheritable, Inheritable);
-    attrs.push_back(l);
   }
 
   // GCC accepts