summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2016-09-13 23:53:43 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2016-09-13 23:53:43 +0000
commit6d5a29489a7d3e323cd127f1ee4566b3ebd9f6c7 (patch)
tree7b996a4165b2a910c8625e604b97e19cc8cd6d95 /llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
parent471932de24b9445efc512e6bb7160099af4ad997 (diff)
downloadbcm5719-llvm-6d5a29489a7d3e323cd127f1ee4566b3ebd9f6c7.tar.gz
bcm5719-llvm-6d5a29489a7d3e323cd127f1ee4566b3ebd9f6c7.zip
Address Pete's review comment and define OrigArg on its own line.
This is a follow-up to r281419. llvm-svn: 281421
Diffstat (limited to 'llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp')
-rw-r--r--llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
index c2cc236493b..23c1f5990ba 100644
--- a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
+++ b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
@@ -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 (;;) {
OpenPOWER on IntegriCloud