summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit20182ac0c7935e3d70fb837a48feca47e00a613e (patch)
tree1deef20893eafc488ca24ceb6ccafc6d96cfd6d4 /llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
parentb3b4a371387b68f3c2da0914fbac989e3e49572a (diff)
downloadbcm5719-llvm-20182ac0c7935e3d70fb837a48feca47e00a613e.tar.gz
bcm5719-llvm-20182ac0c7935e3d70fb837a48feca47e00a613e.zip
Kill every call to @clang.arc.use in the ARC contract phase.
llvm-svn: 177769
Diffstat (limited to 'llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp')
-rw-r--r--llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
index 5aada9c3734..8f917aeb372 100644
--- a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud