[all-commits] [llvm/llvm-project] 672ed5: [codeview] Put !heapallocsite on calls to operator...
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Fri Jun 5 12:52:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 672ed5386024ba5cee53e19d637b7920a4889837
https://github.com/llvm/llvm-project/commit/672ed5386024ba5cee53e19d637b7920a4889837
Author: Reid Kleckner <rnk at google.com>
Date: 2020-06-05 (Fri, 05 Jun 2020)
Changed paths:
M clang/lib/CodeGen/CGCall.cpp
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/lib/CodeGen/CGDebugInfo.h
M clang/lib/CodeGen/CGExprCXX.cpp
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/test/CodeGen/debug-info-codeview-heapallocsite.c
A clang/test/CodeGenCXX/debug-info-codeview-heapallocsite.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list