forked from OSchip/llvm-project
Use getDeclName() instead of getIdentifier() (safe against null pointers)
llvm-svn: 68804
This commit is contained in:
parent
2916a482fb
commit
a53274e5ba
|
@ -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<NamedDecl>(ClassDecl)->getIdentifier();
|
||||
<< cast<NamedDecl>(ClassDecl)->getDeclName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue