Skip to content

Commit

Permalink
[XRay] Update RecordInitializer for PIDRecord
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341243 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
deanberris committed Aug 31, 2018
1 parent 0ce8202 commit 6c04680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XRay/RecordInitializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Error RecordInitializer::visit(PIDRecord &R) {
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.",
Expand Down

0 comments on commit 6c04680

Please sign in to comment.