From: John McCall Date: Tue, 24 Nov 2009 18:44:29 +0000 (+0000) Subject: DeclarationName::getIdentifier should take a const IdentifierInfo, since the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=909e58988b3a3bb2ad36bec03aafa1302544fd73;p=clang DeclarationName::getIdentifier should take a const IdentifierInfo, since the constructor does anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89784 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclarationName.h b/include/clang/AST/DeclarationName.h index a30f6e860d..0e8aad5d93 100644 --- a/include/clang/AST/DeclarationName.h +++ b/include/clang/AST/DeclarationName.h @@ -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); }