From: Ted Kremenek Date: Fri, 10 Apr 2009 18:25:37 +0000 (+0000) Subject: Use getDeclName() instead of getIdentifier() (safe against null pointers) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a11295a7d8d8899522111668b5973c27ea7c6b2;p=clang Use getDeclName() instead of getIdentifier() (safe against null pointers) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index edbb018a22..898ecbb471 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1362,7 +1362,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclPtrTy classDecl, if (VDecl->getStorageClass() != VarDecl::Extern && VDecl->getStorageClass() != VarDecl::PrivateExtern) Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass) - << cast(ClassDecl)->getIdentifier(); + << cast(ClassDecl)->getDeclName(); } } }