summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2019-08-13 01:23:06 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2019-08-13 01:23:06 +0000
commit3c7c053145fa98a017d426b475a9cf9c001c9da1 (patch)
tree95f92886df75a73e72dcabef1f492564849f93e8 /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
parent438315bf69c7dae68edd5c99f9672fffdc442a79 (diff)
downloadbcm5719-llvm-3c7c053145fa98a017d426b475a9cf9c001c9da1.tar.gz
bcm5719-llvm-3c7c053145fa98a017d426b475a9cf9c001c9da1.zip
Do not call replaceAllUsesWith to upgrade calls to ARC runtime functions
to intrinsic calls This fixes a bug in r368311. It turns out that the ARC runtime functions in the IR can have pointer parameter types that are not i8* or i8**. Instead of RAUWing normal functions with intrinsics, manually bitcast the arguments before passing them to the intrinsic functions and bitcast the return value back to the type of the original call instruction. This recommits r368634, which was reverted in r368637. The loop in the patch was iterating over uses of a function and deleting function calls inside it, which caused bots to crash. rdar://problem/54125406 Differential Revision: https://reviews.llvm.org/D66047 llvm-svn: 368646
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud