Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.574 -> 1.575
---
Log message:

Shut up some compilers that can't accurately analyze variable usage 
correctly and emit "may be used uninitialized" warnings.


---
Diffs of the changes:  (+2 -2)

 InstructionCombining.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.574 
llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.575
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.574   Sat Dec 23 
12:58:04 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat Dec 23 13:17:57 2006
@@ -4518,8 +4518,8 @@
     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, 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to