summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-04 18:48:26 +0000
committerChris Lattner <sabre@nondot.org>2010-01-04 18:48:26 +0000
commit2cb08e69b1b252fb730ca831f46f6122238bc1d6 (patch)
treeff871b61fe6e57228ef7e4f2c1a683b2f5108a9c /llvm/lib
parentd443c0a02a061673fc3b5414657d9c7de5ae18e8 (diff)
downloadbcm5719-llvm-2cb08e69b1b252fb730ca831f46f6122238bc1d6.tar.gz
bcm5719-llvm-2cb08e69b1b252fb730ca831f46f6122238bc1d6.zip
silence a bogus 'might be used uninit' warning from GCC.
llvm-svn: 92494
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 5f5cdbf09f7..0c9e1357850 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud