commit | bffa89f42c43021d89f4a0e756601d57583cec7f | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Jul 17 01:19:03 2009 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Jul 17 01:19:03 2009 +0000 |
tree | 2fb28794899eb69bea2def43143838d094506f7a | |
parent | 842e1449225a024a1d9da2e97fedbbc290ddfec9 [diff] [blame] |
Check whether the IdentifierInfo is null, before using it. llvm-svn: 76136
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index 520d189..ca2e7c8 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/lib/Index/Entity.cpp
@@ -56,6 +56,9 @@ return 0; IdentifierInfo *II = Name.getAsIdentifierInfo(); + if (!II) + return 0; + ProgramImpl::IdEntryTy *Id = &Prog.getIdents().GetOrCreateValue(II->getName(), II->getName() + II->getLength());