commit | e5d2dcc6a00699fafa1f0bb4b5d19da0e7b90230 | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Mon Jan 09 14:47:42 2023 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jan 09 15:10:40 2023 -0800 |
tree | 344def3993cd11b43d2920762fed9196ba0dc3f4 | |
parent | 254c7c60f6c67e1f71008f073cf4da50abeea76f [diff] |
Return a shared_ptr from ScratchTypeSystemClang::GetForTarget() 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 GitOrigin-RevId: f8d7ab8cf8e859dcc7f696e8d01ed6fca502446a