[cfe-commits] r50903 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Nate Begeman natebegeman at mac.com
Fri May 9 09:56:01 PDT 2008


Author: sampo
Date: Fri May  9 11:56:01 2008
New Revision: 50903

URL: http://llvm.org/viewvc/llvm-project?rev=50903&view=rev
Log:
Handle all attributes on a parameter

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=50903&r1=50902&r2=50903&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri May  9 11:56:01 2008
@@ -1177,7 +1177,8 @@
   if (II)
     PushOnScopeChains(New, S);
 
-  HandleDeclAttributes(New, D.getAttributes(), 0);
+  HandleDeclAttributes(New, D.getDeclSpec().getAttributes(),
+                       D.getAttributes());
   return New;
 
 }





More information about the cfe-commits mailing list