From a648d5fa320fcf97fa35a41b9ff00148d4249c32 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Fri, 31 Aug 2018 20:02:55 +0000 Subject: [PATCH] [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 --- lib/XRay/RecordInitializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/XRay/RecordInitializer.cpp b/lib/XRay/RecordInitializer.cpp index 11b0710234b..de4e68bc966 100644 --- a/lib/XRay/RecordInitializer.cpp +++ b/lib/XRay/RecordInitializer.cpp @@ -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.",