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 | 5d8f7e0cc705cfa73680d48c3a941872f7023933 (patch) | |
| tree | 0e1d7f77b3c0a32a586f13f31695de1ee359132f /llvm/lib/Transforms | |
| parent | d8675e4915a03a6583ca6d2e6dc5b09a9339a0b5 (diff) | |
| download | bcm5719-llvm-5d8f7e0cc705cfa73680d48c3a941872f7023933.tar.gz bcm5719-llvm-5d8f7e0cc705cfa73680d48c3a941872f7023933.zip | |
eliminate warning
llvm-svn: 42892
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 9e2905781cf..2c88279afb0 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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()); |

