[Lldb-commits] [lldb] [lldb] Fix Intel PT plugin compile errors (PR #77252)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Sun Jan 7 21:34:40 PST 2024


================
@@ -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


More information about the lldb-commits mailing list