aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-04-28 12:49:08 -0700
committerGitHub <noreply@github.com>2024-04-28 12:49:08 -0700
commitc9dae43438897590a21edbc89003bd6704659c7c (patch)
treebdecdc8bd106a358dd318c400774e54b4f1b877a /clang/lib/CodeGen/CodeGenFunction.cpp
parent352602010fac5c7e07bc6b992848ab746d0c2857 (diff)
downloadllvm-c9dae43438897590a21edbc89003bd6704659c7c.zip
llvm-c9dae43438897590a21edbc89003bd6704659c7c.tar.gz
llvm-c9dae43438897590a21edbc89003bd6704659c7c.tar.bz2
[memprof] Add access checks to PortableMemInfoBlock::get* (#90121)
commit 4c8ec8f8bc3fb4dda4fd36c3b2ad745bd3451970 Author: Kazu Hirata <kazu@google.com> Date: Wed Apr 24 16:25:35 2024 -0700 introduced the idea of serializing/deserializing a subset of the fields in PortableMemInfoBlock. While it reduces the size of the indexed MemProf profile file, we now could inadvertently access unavailable fields and go without noticing. To protect ourselves from the risk, this patch adds access checks to PortableMemInfoBlock::get* methods by embedding a bit set representing available fields into PortableMemInfoBlock.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions