aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-03-22 21:38:36 +0000
committerJohn McCall <rjmccall@apple.com>2013-03-22 21:38:36 +0000
commit1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9 (patch)
tree8a45c19ffc397182c746ceac02b960757b6a55bb /lib/Transforms/ObjCARC/DependencyAnalysis.cpp
parent46125e1a8b01b4755dca9528ae64f7ffc3d34c66 (diff)
downloadexternal_llvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.zip
external_llvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.tar.gz
external_llvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.tar.bz2
Kill every call to @clang.arc.use in the ARC contract phase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ObjCARC/DependencyAnalysis.cpp')
-rw-r--r--lib/Transforms/ObjCARC/DependencyAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/ObjCARC/DependencyAnalysis.cpp b/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
index 5aada9c..8f917ae 100644
--- a/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
+++ b/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
@@ -38,6 +38,7 @@ llvm::objcarc::CanAlterRefCount(const Instruction *Inst, const Value *Ptr,
switch (Class) {
case IC_Autorelease:
case IC_AutoreleaseRV:
+ case IC_IntrinsicUser:
case IC_User:
// These operations never directly modify a reference count.
return false;