diff --git a/libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp b/libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp index 90d2e03ad5..936f15fba5 100644 --- a/libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp +++ b/libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp @@ -201,6 +201,11 @@ void ClamBCAnalysis::run(Module &m) functions.push_back(F); } + /* + * Remove all functions and re-insert them sorted by number of arguments. + * This is a requirement of the writer, but I have not verified that it is + * still necessary. + */ for (size_t i = 0; i < functions.size(); i++) { functions[i]->removeFromParent(); }