[all-commits] [llvm/llvm-project] effc33: [llvm-cov] Enforce alignment of function records
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Fri Jun 25 01:56:22 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: effc3339f6c7702357471efc849c4fc31b4b1aad
https://github.com/llvm/llvm-project/commit/effc3339f6c7702357471efc849c4fc31b4b1aad
Author: serge-sans-paille <sguelton at redhat.com>
Date: 2021-06-25 (Fri, 25 Jun 2021)
Changed paths:
M llvm/include/llvm/ProfileData/Coverage/CoverageMappingReader.h
M llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
Log Message:
-----------
[llvm-cov] Enforce alignment of function records
Function Records are required to be aligned on 8 bytes. This is enforced for each
records except the first, when one relies on the default alignment within an
std::string. There's no such guarantee, and indeed on 32 bits for some
implementation of std::string this is not enforced.
Provide a portable implementation based on llvm's MemoryBuffer.
Differential Revision: https://reviews.llvm.org/D104745
More information about the All-commits
mailing list