summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-06-30 16:28:15 +0000
committerKuba Mracek <mracek@apple.com>2017-06-30 16:28:15 +0000
commitbce5ceabea38f285e52d32480c7040855320ef7d (patch)
tree4ac9c6ab21ca1dbd245f64ba2f7afb348d28de03 /clang/lib/CodeGen/CGCall.cpp
parent1898045ba5f52741ff70c1d6c64bbf67d8455ea8 (diff)
downloadbcm5719-llvm-bce5ceabea38f285e52d32480c7040855320ef7d.tar.gz
bcm5719-llvm-bce5ceabea38f285e52d32480c7040855320ef7d.zip
[objc] Don't require null-check and don't emit memset when result is ignored for struct-returning method calls [clang part]
This fixes an issue with the emission of lifetime markers for struct-returning Obj-C msgSend calls. When the result of a struct-returning call is ignored, the temporary storage is only marked with lifetime markers in one of the two branches of the nil-receiver-check. The check is, however, not required when the result is unused. If we still need to emit the check (due to consumer arguments), let's not emit the memset to zero out the result if it's unused. This fixes a use-after-scope false positive with AddressSanitizer. Differential Revision: https://reviews.llvm.org/D34834 llvm-svn: 306837
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud