[cfe-commits] r52768 - /cfe/trunk/include/clang/Parse/DeclSpec.h

Chris Lattner sabre at nondot.org
Wed Jun 25 23:11:04 PDT 2008


Author: lattner
Date: Thu Jun 26 01:11:04 2008
New Revision: 52768

URL: http://llvm.org/viewvc/llvm-project?rev=52768&view=rev
Log:
another const correctness bug with declspec.

Modified:
    cfe/trunk/include/clang/Parse/DeclSpec.h

Modified: cfe/trunk/include/clang/Parse/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/DeclSpec.h?rev=52768&r1=52767&r2=52768&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Parse/DeclSpec.h Thu Jun 26 01:11:04 2008
@@ -265,7 +265,8 @@
     AttrList = alist;
   }
   void SetAttributes(AttributeList *AL) { AttrList = AL; }
-  AttributeList *getAttributes() const { return AttrList; }
+  const AttributeList *getAttributes() const { return AttrList; }
+  AttributeList *getAttributes() { return AttrList; }
   
   /// TakeAttributes - Return the current attribute list and remove them from
   /// the DeclSpec so that it doesn't own them.





More information about the cfe-commits mailing list