OSDN Git Service

Address Pete's review comment and define OrigArg on its own line.
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 13 Sep 2016 23:53:43 +0000 (23:53 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 13 Sep 2016 23:53:43 +0000 (23:53 +0000)
This is a follow-up to r281419.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281421 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ObjCARCContract.cpp

index c2cc236..23c1f59 100644 (file)
@@ -601,7 +601,8 @@ bool ObjCARCContract::runOnFunction(Function &F) {
     };
 
 
-    Value *Arg = cast<CallInst>(Inst)->getArgOperand(0), *OrigArg = Arg;
+    Value *Arg = cast<CallInst>(Inst)->getArgOperand(0);
+    Value *OrigArg = Arg;
 
     // TODO: Change this to a do-while.
     for (;;) {