Skip to content

Commit

Permalink
fix issue #1609
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Dec 16, 2024
1 parent cf9433d commit a1c2a90
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 a1c2a90

Please sign in to comment.