Skip to content

Commit

Permalink
Merge pull request #979 from seviezhou/patch-1
Browse files Browse the repository at this point in the history
Handle empty GlobalVariable name
  • Loading branch information
yuleisui authored Dec 28, 2022
2 parents b7e35de + c996327 commit 6abb39b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions svf-llvm/lib/LLVMModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@ void LLVMModuleSet::buildGlobalDefToRepMap()
if (global->hasPrivateLinkage())
continue;
string name = global->getName().str();
if (name.empty())
continue;
NameToGlobalsMapTy::iterator mit = nameToGlobalsMap.find(name);
if (mit == nameToGlobalsMap.end())
{
Expand Down

0 comments on commit 6abb39b

Please sign in to comment.