Skip to content

Commit

Permalink
fix issue SVF-tools#1609
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui authored and hwg committed Jan 27, 2025
1 parent c2864b2 commit 79de317
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svf-llvm/lib/CppUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,9 @@ bool cppUtil::matchesLabel(const std::string &foo, const std::string &label)
*/
bool cppUtil::isTemplateFunc(const Function *foo)
{
assert(foo->hasName() && "foo does not have a name? possible indirect call");
/// if the function does not have a name, it can be a compiler generated internal function.
if(foo->hasName() == false)
return false;
const std::string &name = foo->getName().str();
bool matchedLabel = matchesLabel(name, znstLabel) || matchesLabel(name, znkstLabel) ||
matchesLabel(name, znkLabel);
Expand Down

0 comments on commit 79de317

Please sign in to comment.