summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-23 19:17:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-23 19:17:57 +0000
commit910f23f7d729ea105dd70326f3dacd10d7a8a346 (patch)
treed2d373bcbe99a54836f117fb1801610440318c4d
parent208099bbeeb11680febdac621566d215e96334e8 (diff)
downloadbcm5719-llvm-910f23f7d729ea105dd70326f3dacd10d7a8a346.tar.gz
bcm5719-llvm-910f23f7d729ea105dd70326f3dacd10d7a8a346.zip
Shut up some compilers that can't accurately analyze variable usage
correctly and emit "may be used uninitialized" warnings. llvm-svn: 32756
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 3397530482f..d0e74c1fa07 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -4518,8 +4518,8 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
if (KnownOne | KnownZero) {
// Compute the Min, Max and RHS values based on the known bits. For the
// EQ and NE we use unsigned values.
- uint64_t UMin, UMax, URHSVal;
- int64_t SMin, SMax, SRHSVal;
+ uint64_t UMin = 0, UMax = 0, URHSVal = 0;
+ int64_t SMin = 0, SMax = 0, SRHSVal = 0;
if (ICmpInst::isSignedPredicate(I.getPredicate())) {
SRHSVal = CI->getSExtValue();
ComputeSignedMinMaxValuesFromKnownBits(Ty, KnownZero, KnownOne, SMin,
OpenPOWER on IntegriCloud