diff --git a/llvm/lib/CheerpUtils/GlobalDepsAnalyzer.cpp b/llvm/lib/CheerpUtils/GlobalDepsAnalyzer.cpp index 35e9d43109c1..606c75478697 100644 --- a/llvm/lib/CheerpUtils/GlobalDepsAnalyzer.cpp +++ b/llvm/lib/CheerpUtils/GlobalDepsAnalyzer.cpp @@ -1202,7 +1202,7 @@ void GlobalDepsAnalyzer::visitGlobal( const GlobalValue * C, VisitedSet & visite } else if (const Function * F = dyn_cast(C) ) { - if (isFreeFunctionName(C->getName())) + if (C->getName() == "free") { // Don't visit free right now. We do it only if // actyally needed at the end