From 0cb1e9edd5ae9862da46d102daf613cd688eb61a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Jan 2010 18:48:26 +0000 Subject: [PATCH] silence a bogus 'might be used uninit' warning from GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92494 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 5f5cdbf09f7..0c9e1357850 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -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; -- 2.11.0