diff options
author | Reid Kleckner <rnk@google.com> | 2020-06-01 17:11:06 -0700 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2020-06-05 12:52:38 -0700 |
commit | 672ed5386024ba5cee53e19d637b7920a4889837 (patch) | |
tree | b8f7cfeb513b70128c9c3072a6c741cedccff2a2 /llvm/lib/Object/COFFObjectFile.cpp | |
parent | 7e7ec2b32598083eec0c2a54e04e19f1b7c83594 (diff) | |
download | llvm-672ed5386024ba5cee53e19d637b7920a4889837.zip llvm-672ed5386024ba5cee53e19d637b7920a4889837.tar.gz llvm-672ed5386024ba5cee53e19d637b7920a4889837.tar.bz2 |
[codeview] Put !heapallocsite on calls to operator new
Clang marks calls to operator new as heap allocation sites, but the
operator declared at global scope returns a void pointer. There is no
explicit cast in the code, so the compiler has to write down the
allocated type itself.
Also generalize a cast to use CallBase, so that we mark heap alloc sites
when exceptions are enabled.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D80966
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions