Check whether the IdentifierInfo is null, before using it.

llvm-svn: 76136
This commit is contained in:
Argyrios Kyrtzidis 2009-07-17 01:19:03 +00:00
parent 842e144922
commit bffa89f42c
1 changed files with 3 additions and 0 deletions

View File

@ -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());