[llvm-commits] [llvm] r42892 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Gabor Greif ggreif at gmail.com
Fri Oct 12 00:44:55 PDT 2007


Author: ggreif
Date: Fri Oct 12 02:44:54 2007
New Revision: 42892

URL: http://llvm.org/viewvc/llvm-project?rev=42892&view=rev
Log:
eliminate warning

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=42892&r1=42891&r2=42892&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri Oct 12 02:44:54 2007
@@ -8643,7 +8643,7 @@
       // 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());





More information about the llvm-commits mailing list