[all-commits] [llvm/llvm-project] c74389: [memprof] Fix frame deserialization on big endian ...
Snehasish Kumar via All-commits
all-commits at lists.llvm.org
Thu Feb 17 15:31:45 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c74389b4b58d8db3f8262ce15b9d514d62fe265c
https://github.com/llvm/llvm-project/commit/c74389b4b58d8db3f8262ce15b9d514d62fe265c
Author: Snehasish Kumar <snehasishk at google.com>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M llvm/include/llvm/ProfileData/MemProf.h
M llvm/lib/ProfileData/MemProf.cpp
Log Message:
-----------
[memprof] Fix frame deserialization on big endian systems.
We write the memprof internal call frame data in little endian format.
However when reading the frame information we were casting it directly
to a MemProfRecord::Frame pointer. In this change we add a separate
deserialization method which uses an endian reader to read the bytes as
little endian.
This fixes https://lab.llvm.org/buildbot/#/builders/100/builds/12940
Differential Revision: https://reviews.llvm.org/D120093
More information about the All-commits
mailing list