diff options
| author | Michał Górny <mgorny@moritz.systems> | 2022-08-05 19:39:42 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@moritz.systems> | 2022-08-08 17:34:27 +0200 |
| commit | 9b031d5e3a7b455308257a71116a603e76c8c679 (patch) | |
| tree | 8087466908ca913f45c4267b35c688c71e1e546c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | e64025045457b7f52201fbd48b24739f64074b59 (diff) | |
[lldb] Make Process and subclass constructors protected
Make constructors of the Process and its subclasses class protected,
to prevent accidentally constructing Process on stack when it could be
afterwards accessed via a shared_ptr (since it uses
std::enable_shared_from_this<>).
The only place where a stack allocation was used were unittests,
and fixing them via declaring an explicit public constructor
in the respective mock classes is trivial.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D131275
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
