[llvm] [MergeFunctions] Add support to run the pass over a set of function pointers (PR #111045)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 28 01:52:41 PST 2024
================
@@ -467,9 +488,16 @@ bool MergeFunctions::runOnModule(Module &M) {
return Changed;
}
+DenseMap<Function *, Function *>
+MergeFunctions::runOnFunctions(ArrayRef<Function *> F) {
+ bool MergeResult = this->run(F);
----------------
nikic wrote:
```suggestion
[[maybe_unused]] bool MergeResult = this->run(F);
```
Otherwise this is going to warn in release build.
https://github.com/llvm/llvm-project/pull/111045
More information about the llvm-commits
mailing list