diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-02-27 06:37:39 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-02-27 06:37:39 +0000 |
commit | 34709f84d809133654f78b8de87573e74b619b5c (patch) | |
tree | 29e8426b84efee04294382a34aa0a61728fcc512 | |
parent | d05f6870c32f9fa2092ff19ba792965918dbe0ec (diff) | |
download | bcm5719-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
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
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() && |