diff options
author | Kazu Hirata <kazu@google.com> | 2024-04-28 11:44:45 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-04-28 11:44:45 -0700 |
commit | 352602010fac5c7e07bc6b992848ab746d0c2857 (patch) | |
tree | 7cdde460193f45a99a9e4202ad2738756be6d5f4 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 6dd90616c477d83c156eed62c880e951bb508cfd (diff) | |
download | llvm-352602010fac5c7e07bc6b992848ab746d0c2857.zip llvm-352602010fac5c7e07bc6b992848ab746d0c2857.tar.gz llvm-352602010fac5c7e07bc6b992848ab746d0c2857.tar.bz2 |
Repply [memprof] Introduce FrameIdConverter and CallStackIdConverter (#90307)
Currently, we convert FrameId to Frame and CallStackId to a call stack
at several places. This patch unifies those into function objects --
FrameIdConverter and CallStackIdConverter.
The existing implementation of CallStackIdConverter, being removed in
this patch, handles both FrameId and CallStackId conversions. This
patch splits it into two phases for flexibility (but make them
composable) because some places only require the FrameId conversion.
This iteration fixes a problem uncovered with ubsan, where we were
dereferencing an uninitialized std::unique_ptr.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions