[llvm-commits] [llvm] r92494 - /llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Mon Jan 4 10:48:26 PST 2010


Author: lattner
Date: Mon Jan  4 12:48:26 2010
New Revision: 92494

URL: http://llvm.org/viewvc/llvm-project?rev=92494&view=rev
Log:
silence a bogus 'might be used uninit' warning from GCC.

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

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

==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp Mon Jan  4 12:48:26 2010
@@ -1095,7 +1095,7 @@
   
   // If LHS is a gep based on RHS or RHS is a gep based on LHS, we can optimize
   // this.
-  bool Swapped;
+  bool Swapped = false;
   GetElementPtrInst *GEP = 0;
   ConstantExpr *CstGEP = 0;
   





More information about the llvm-commits mailing list