summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2019-05-02 20:07:35 +0000
committerAmy Huang <akhuang@google.com>2019-05-02 20:07:35 +0000
commit301a5bbd59df75bc4ae40328f717c5ad4efabfff (patch)
tree5e1413877b0b5c8c37d90b700a6f7f98a4cabacd /clang/lib/CodeGen/CGCall.cpp
parent8ccb8f86474af26497be8cf7ffd46bd11f5e7b0f (diff)
downloadbcm5719-llvm-301a5bbd59df75bc4ae40328f717c5ad4efabfff.tar.gz
bcm5719-llvm-301a5bbd59df75bc4ae40328f717c5ad4efabfff.zip
Change the metadata for heapallocsite calls when the type is cast.
llvm-svn: 359823
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index ed582552314..b837fa486ad 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -4370,7 +4370,6 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
}
// Add metadata for calls to MSAllocator functions
- // FIXME: Get the type that the return value is cast to.
if (getDebugInfo() && TargetDecl &&
TargetDecl->hasAttr<MSAllocatorAttr>())
getDebugInfo()->addHeapAllocSiteMetadata(CI, RetTy, Loc);
OpenPOWER on IntegriCloud