diff options
author | Gabor Greif <ggreif@gmail.com> | 2007-10-12 07:44:54 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2007-10-12 07:44:54 +0000 |
commit | f3cdf3e3ec2628420ba3f28000896df555f3f0e8 (patch) | |
tree | 865f3a9d6d77d43295e46145690dcdaf7f96173c | |
parent | 6a94de299029043f0a51a401398921cc8bb2418d (diff) |
eliminate warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42892 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 9e2905781c..2c88279afb 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -8643,7 +8643,7 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { // converted to match the type of the cast, don't touch this. if (isa<AllocationInst>(BCI->getOperand(0))) { // See if the bitcast simplifies, if so, don't nuke this GEP yet. - if (Instruction *I = visitBitCast(*BCI)) + if (visitBitCast(*BCI)) return &GEP; } return new BitCastInst(BCI->getOperand(0), GEP.getType()); |