[Lldb-commits] [lldb] Fix return value of 'PluginManager::RegisterPlugin()'. (PR #114120)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 29 13:26:46 PDT 2024


================
@@ -209,7 +209,7 @@ template <typename Instance> class PluginInstances {
     Instance instance =
         Instance(name, description, callback, std::forward<Args>(args)...);
     m_instances.push_back(instance);
----------------
JDevlieghere wrote:

While you're here... :-) Should this use `emplace_back` to create the instance object in place?

https://github.com/llvm/llvm-project/pull/114120


More information about the lldb-commits mailing list