mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Shut up some compilers that can't accurately analyze variable usage
correctly and emit "may be used uninitialized" warnings. llvm-svn: 32756
This commit is contained in:
parent
f517d2c935
commit
a4415de894
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user