aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ProgramStack.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-07-18 16:15:38 -0700
committerGitHub <noreply@github.com>2025-07-18 16:15:38 -0700
commit68fd102598a27e2654c0ced9c122c601795097fe (patch)
tree3b36caa3210560114e8958f1d087b15a8bef0325 /llvm/lib/Support/ProgramStack.cpp
parent09bea21d9507e142d2ff6a5068362bdc824fce54 (diff)
downloadllvm-68fd102598a27e2654c0ced9c122c601795097fe.zip
llvm-68fd102598a27e2654c0ced9c122c601795097fe.tar.gz
llvm-68fd102598a27e2654c0ced9c122c601795097fe.tar.bz2
[lldb] Use std::make_shared for StopInfoSP (#149612)
Use std::make_shared to create a StopInfoSP, which inherits from shared_from_this. It's both the most efficient and safest way to create these objects: - With make_shared, the object and the control block are allocated together, which is more efficient. - With make_shared, the enable_shared_from_this base class is properly linked to the control block before the constructor finishes, so shared_from_this() will be safe to use (though still not recommended during construction).
Diffstat (limited to 'llvm/lib/Support/ProgramStack.cpp')
0 files changed, 0 insertions, 0 deletions