summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-02-27 06:37:39 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-02-27 06:37:39 +0000
commit34709f84d809133654f78b8de87573e74b619b5c (patch)
tree29e8426b84efee04294382a34aa0a61728fcc512 /llvm/lib/Transforms
parentd05f6870c32f9fa2092ff19ba792965918dbe0ec (diff)
downloadbcm5719-llvm-34709f84d809133654f78b8de87573e74b619b5c.tar.gz
bcm5719-llvm-34709f84d809133654f78b8de87573e74b619b5c.zip
Silence compiler warning about use of uninitialized variables (in reality these
are always set by reference on the path that uses them.) No functional change. llvm-svn: 65621
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 61ca5de5b86..8e91b36d5d1 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -5822,7 +5822,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
// See if we are doing a comparison with a constant.
if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
- Value *A, *B;
+ Value *A = 0, *B = 0;
// (icmp ne/eq (sub A B) 0) -> (icmp ne/eq A, B)
if (I.isEquality() && CI->isNullValue() &&
OpenPOWER on IntegriCloud