[Lldb-commits] [PATCH] D106171: [lldb] Avoid moving ThreadPlanSP from plans vector

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 28 19:49:18 PDT 2021


kastiglione added a comment.

In D106171#2910693 <https://reviews.llvm.org/D106171#2910693>, @JDevlieghere wrote:

> IIRC the fact that the shared pointer is null is implementation defined and the standard just says that a moved-from object is in an undefined state.

According to cppreference, the move constructor says:

> After the construction, `*this` contains a copy of the previous state of `r`, **`r` is empty and its stored pointer is null**.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106171/new/

https://reviews.llvm.org/D106171



More information about the lldb-commits mailing list