mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[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. llvm-svn: 341243
This commit is contained in:
parent
5bd013d85b
commit
a648d5fa32
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user