summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/ObjCARC.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-05-09 07:08:58 +0000
committerCraig Topper <craig.topper@gmail.com>2012-05-09 07:08:58 +0000
commitb12af898c317e64bba3ac1692073c812503e01c4 (patch)
tree4697a8745024606823755e23ce6a40b78ea79c94 /lib/Transforms/Scalar/ObjCARC.cpp
parent2b409b65d45e2857dd842afc18b6b8c2da791a35 (diff)
downloadexternal_llvm-b12af898c317e64bba3ac1692073c812503e01c4.zip
external_llvm-b12af898c317e64bba3ac1692073c812503e01c4.tar.gz
external_llvm-b12af898c317e64bba3ac1692073c812503e01c4.tar.bz2
Remove unused variable to get rid of warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ObjCARC.cpp')
-rw-r--r--lib/Transforms/Scalar/ObjCARC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp
index 8f8c0e8..5d6e1a7 100644
--- a/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/lib/Transforms/Scalar/ObjCARC.cpp
@@ -3902,7 +3902,7 @@ void ObjCARCContract::ContractRelease(Instruction *Release,
if (Load->getParent() != BB) return;
// Walk down to find the store and the release, which may be in either order.
- BasicBlock::iterator I = Load, End = BB->end();
+ BasicBlock::iterator I = Load;
++I;
AliasAnalysis::Location Loc = AA->getLocation(Load);
StoreInst *Store = 0;