[llvm] [MachineOutliner][NFC] Refactor (PR #105398)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 15:12:38 PDT 2024
================
@@ -684,7 +688,7 @@ void MachineOutliner::findCandidates(
continue;
}
- FunctionList.push_back(*OF);
+ FunctionList.push_back(std::make_unique<OutlinedFunction>(*OF));
----------------
ellishg wrote:
Does this work?
```suggestion
FunctionList.emplace_back(*OF);
```
https://github.com/llvm/llvm-project/pull/105398
More information about the llvm-commits
mailing list