diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 19:17:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 19:17:57 +0000 |
commit | b3307b232ad02dbb5b7f873473a83a1712db71d0 (patch) | |
tree | f279f1ba6b70c7f708818d9339cb8f1b19f3ac42 /lib | |
parent | 00d35c5a34c81c4f423fca4bf5191e8127564919 (diff) | |
download | llvm-b3307b232ad02dbb5b7f873473a83a1712db71d0.tar.gz llvm-b3307b232ad02dbb5b7f873473a83a1712db71d0.tar.bz2 llvm-b3307b232ad02dbb5b7f873473a83a1712db71d0.tar.xz |
Shut up some compilers that can't accurately analyze variable usage
correctly and emit "may be used uninitialized" warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3397530482..d0e74c1fa0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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, |