mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
The current interface theoretically could lead to a use-after-free when a client holds on to the returned pointer. Fix this by returning a shared_ptr to the scratch typesystem. rdar://103619233 Differential Revision: https://reviews.llvm.org/D141100