From c3d2b0c1266711e57146b2958b12e98ea90a7a93 Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Fri, 26 Jan 2024 09:50:07 -0800 Subject: [PATCH] blah --- libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); }