Improved comment. No functionality change.
authorMichael Gottesman <mgottesman@apple.com>
Wed, 3 Apr 2013 01:57:16 +0000 (01:57 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 3 Apr 2013 01:57:16 +0000 (01:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178605 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ObjCARCOpts.cpp

index 924fb0a9dacd2d6aaf3a2453278a7a4dd3052cf2..a956caeffe0addba6e172b2a9fce0e90035cfdb4 100644 (file)
@@ -1440,7 +1440,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
       break;
     }
 
       break;
     }
 
-    // objc_autorelease(x) -> objc_release(x) if x is otherwise unused.
+    // objc_autorelease(x), objc_autoreleaseRV -> objc_release(x) if x is
+    // otherwise unused.
     if (IsAutorelease(Class) && Inst->use_empty()) {
       CallInst *Call = cast<CallInst>(Inst);
       const Value *Arg = Call->getArgOperand(0);
     if (IsAutorelease(Class) && Inst->use_empty()) {
       CallInst *Call = cast<CallInst>(Inst);
       const Value *Arg = Call->getArgOperand(0);