diff options
author | Snehasish Kumar <snehasishk@google.com> | 2022-02-17 15:14:47 -0800 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2022-02-17 15:31:22 -0800 |
commit | c74389b4b58d8db3f8262ce15b9d514d62fe265c (patch) | |
tree | a1121a6cfaf19ba87dd42f0fcf408053e4add844 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | c46aab01c002b7a04135b8b7f1f52d8c9ae23a58 (diff) | |
download | llvm-c74389b4b58d8db3f8262ce15b9d514d62fe265c.zip llvm-c74389b4b58d8db3f8262ce15b9d514d62fe265c.tar.gz llvm-c74389b4b58d8db3f8262ce15b9d514d62fe265c.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions