forked from OSchip/llvm-project
Check whether the IdentifierInfo is null, before using it.
llvm-svn: 76136
This commit is contained in:
parent
842e144922
commit
bffa89f42c
|
@ -56,6 +56,9 @@ Entity *EntityGetter::get(Entity *Parent, DeclarationName Name) {
|
|||
return 0;
|
||||
|
||||
IdentifierInfo *II = Name.getAsIdentifierInfo();
|
||||
if (!II)
|
||||
return 0;
|
||||
|
||||
ProgramImpl::IdEntryTy *Id =
|
||||
&Prog.getIdents().GetOrCreateValue(II->getName(),
|
||||
II->getName() + II->getLength());
|
||||
|
|
Loading…
Reference in New Issue