]> granicus.if.org Git - llvm/commit
[Bitcode] Fix bitcode compatibility issue with clang.arc.use intrinsic
authorSteven Wu <stevenwu@apple.com>
Fri, 8 Mar 2019 05:27:53 +0000 (05:27 +0000)
committerSteven Wu <stevenwu@apple.com>
Fri, 8 Mar 2019 05:27:53 +0000 (05:27 +0000)
commitecff519a1681c3b79659c6fbbd1f3d1eee36137d
treeb9781b975b36a96c7ee157c0082aa9a04040af90
parent81588cab8d6b7cedef4f12eeb174795379cca307
[Bitcode] Fix bitcode compatibility issue with clang.arc.use intrinsic

Summary:
In r349534, objc arc implementation is switched to use intrinsics and at
the same time, clang.arc.use is renamed to llvm.objc.clang.arc.use to
make the naming more consistent. The side-effect of that is llvm no
longer recognize it as intrinsics and codegen external references to
it instead.

Rather than upgrade the old intrinsics name to the new one and wait for
the arc-contract pass to remove it, simply remove it in the bitcode
upgrader.

rdar://problem/48607063

Reviewers: pete, ahatanak, erik.pilkington, dexonsmith

Reviewed By: pete, dexonsmith

Subscribers: jkorous, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59112

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AutoUpgrade.cpp
test/Bitcode/upgrade-clang-arc-use.ll [new file with mode: 0644]
test/Bitcode/upgrade-clang-arc-use.ll.bc [new file with mode: 0644]