silence a bogus 'might be used uninit' warning from GCC.
authorChris Lattner <sabre@nondot.org>
Mon, 4 Jan 2010 18:48:26 +0000 (18:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 4 Jan 2010 18:48:26 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92494 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstructionCombining.cpp

index 5f5cdbf09f7f24688d6ab9b1191431d34e7017a1..0c9e1357850c9b1d0c9ff903f8783c8fc97d74f8 100644 (file)
@@ -1095,7 +1095,7 @@ Value *InstCombiner::OptimizePointerDifference(Value *LHS, Value *RHS,
   
   // 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;