]> granicus.if.org Git - clang/commitdiff
DeclarationName::getIdentifier should take a const IdentifierInfo, since the
authorJohn McCall <rjmccall@apple.com>
Tue, 24 Nov 2009 18:44:29 +0000 (18:44 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 24 Nov 2009 18:44:29 +0000 (18:44 +0000)
constructor does anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89784 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclarationName.h

index a30f6e860dde92909c73a838432b33279fa87aae..0e8aad5d93df781e8e78421e3035ab90af857002 100644 (file)
@@ -293,7 +293,7 @@ public:
 
   /// getIdentifier - Create a declaration name that is a simple
   /// identifier.
-  DeclarationName getIdentifier(IdentifierInfo *ID) {
+  DeclarationName getIdentifier(const IdentifierInfo *ID) {
     return DeclarationName(ID);
   }