diff options
author | Sanne Wouda <Sanne.Wouda@arm.com> | 2019-10-31 14:55:57 +0000 |
---|---|---|
committer | Sanne Wouda <Sanne.Wouda@arm.com> | 2019-10-31 16:13:29 +0000 |
commit | f2cb9c0eabc132152b5b3ad4c87a5a02345a883d (patch) | |
tree | 9914f146abf63c1134d48e687eae04cbbb946270 /debuginfo-tests/dexter/dex/builder/ParserOptions.py | |
parent | 27cb352fd27668519f25ab8d5717173fc3ff2235 (diff) | |
download | bcm5719-llvm-f2cb9c0eabc132152b5b3ad4c87a5a02345a883d.tar.gz bcm5719-llvm-f2cb9c0eabc132152b5b3ad4c87a5a02345a883d.zip |
Fix missing memcpy, memmove and memset tail calls
Summary:
If a wrapper around one of the mem* stdlib functions bitcasts the returned
pointer value before returning it (e.g. to a wchar_t*), LLVM does not emit a
tail call.
Add a check for this scenario so that we emit a tail call.
Reviewers: wmi, mkuper, ramred01, dmgreen
Reviewed By: wmi, dmgreen
Subscribers: hiraditya, sanwou01, javed.absar, lebedev.ri, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59078
Diffstat (limited to 'debuginfo-tests/dexter/dex/builder/ParserOptions.py')
0 files changed, 0 insertions, 0 deletions