[Lldb-commits] [PATCH] D68723: Fix process launch failure on FreeBSD after r365761
Fangrui Song via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 9 23:23:51 PDT 2019
MaskRay added a comment.
This was probably due to:
Expected(Error Err)
: HasError(true)
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
// Expected is unchecked upon construction in Debug builds.
, Unchecked(true)
#endif
{
assert(Err && "Cannot create Expected<T> from Error success value.");
new (getErrorStorage()) error_type(Err.takePayload());
}
The member initialization makes the members unchecked `m_operation_thread(nullptr)`. Adding something like `(void)!m_operation_thread` before assignment to `m_operation_thread` is probably better.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68723/new/
https://reviews.llvm.org/D68723
More information about the lldb-commits
mailing list