mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 22:46:05 +00:00

BroadcastEvent currently takes its EventData* param and shoves it into an Event object, which takes ownership of the pointer and places it into a shared_ptr to manage the lifetime. Instead of relying on `new` and passing raw pointers around, I think it would make more sense to create the shared_ptr up front.