[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Jeff Cohen jeffc at jolt-lang.org
Mon May 9 19:22:49 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.103 -> 1.104
---
Log message:

Silence some VC++ warnings

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

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.103 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.104
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.103	Mon May  9 15:22:17 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Mon May  9 21:22:38 2005
@@ -287,7 +287,7 @@
 
 SDOperand SelectionDAG::getZeroExtendInReg(SDOperand Op, MVT::ValueType VT) {
   if (Op.getValueType() == VT) return Op;
-  int64_t Imm = ~0ULL >> 64-MVT::getSizeInBits(VT);
+  int64_t Imm = ~0ULL >> (64-MVT::getSizeInBits(VT));
   return getNode(ISD::AND, Op.getValueType(), Op,
                  getConstant(Imm, Op.getValueType()));
 }
@@ -561,7 +561,7 @@
     unsigned UOF = ISD::getUnorderedFlavor(Cond);
     if (UOF == 2)   // FP operators that are undefined on NaNs.
       return getConstant(ISD::isTrueWhenEqual(Cond), VT);
-    if (UOF == ISD::isTrueWhenEqual(Cond))
+    if (UOF == unsigned(ISD::isTrueWhenEqual(Cond)))
       return getConstant(UOF, VT);
     // Otherwise, we can't fold it.  However, we can simplify it to SETUO/SETO
     // if it is not already.






More information about the llvm-commits mailing list