[llvm] r341243 - [XRay] Update RecordInitializer for PIDRecord
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 13:02:56 PDT 2018
Author: dberris
Date: Fri Aug 31 13:02:55 2018
New Revision: 341243
URL: http://llvm.org/viewvc/llvm-project?rev=341243&view=rev
Log:
[XRay] Update RecordInitializer for PIDRecord
Since we changed the storage for the PID in PIDRecord instances, we need
to also update the way we load the data from a DataExtractor through the
RecordInitializer.
Modified:
llvm/trunk/lib/XRay/RecordInitializer.cpp
Modified: llvm/trunk/lib/XRay/RecordInitializer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/XRay/RecordInitializer.cpp?rev=341243&r1=341242&r2=341243&view=diff
==============================================================================
--- llvm/trunk/lib/XRay/RecordInitializer.cpp (original)
+++ llvm/trunk/lib/XRay/RecordInitializer.cpp Fri Aug 31 13:02:55 2018
@@ -157,7 +157,7 @@ Error RecordInitializer::visit(PIDRecord
OffsetPtr);
auto PreReadOffset = OffsetPtr;
- R.PID = E.getU64(&OffsetPtr);
+ R.PID = E.getSigned(&OffsetPtr, 4);
if (PreReadOffset == OffsetPtr)
return createStringError(std::make_error_code(std::errc::bad_message),
"Cannot read a process ID record at offset %d.",
More information about the llvm-commits
mailing list