From 20182ac0c7935e3d70fb837a48feca47e00a613e Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 22 Mar 2013 21:38:36 +0000 Subject: Kill every call to @clang.arc.use in the ARC contract phase. llvm-svn: 177769 --- llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp') diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp index 1c13d1cbea4..5d0865e8bea 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp @@ -453,6 +453,10 @@ bool ObjCARCContract::runOnFunction(Function &F) { if (isa(Inst)) TailOkForStoreStrongs = false; continue; + case IC_IntrinsicUser: + // Remove calls to @clang.arc.use(...). + Inst->eraseFromParent(); + continue; default: continue; } -- cgit v1.2.3