================ @@ -85,6 +85,11 @@ double DecodedThread::NanosecondsRange::GetInterpolatedTime( return interpolate(next_range->nanos); } +DecodedThread::TraceItemStorage::TraceItemStorage( + const TraceItemStorage &other) { + std::memcpy(this, &other, sizeof *this); ---------------- JDevlieghere wrote:
Does the `DecodedThread` know which member of the `TraceItemStorage` is being used? If so, you can pass an additional argument and copy the right member rather than just copying the bytes. https://github.com/llvm/llvm-project/pull/77252 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits