aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-06-01 17:11:06 -0700
committerReid Kleckner <rnk@google.com>2020-06-05 12:52:38 -0700
commit672ed5386024ba5cee53e19d637b7920a4889837 (patch)
treeb8f7cfeb513b70128c9c3072a6c741cedccff2a2 /llvm/lib/Object/COFFObjectFile.cpp
parent7e7ec2b32598083eec0c2a54e04e19f1b7c83594 (diff)
downloadllvm-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