Silence some VC++ warnings
authorJeff Cohen <jeffc@jolt-lang.org>
Tue, 10 May 2005 02:22:38 +0000 (02:22 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Tue, 10 May 2005 02:22:38 +0000 (02:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/X86/X86ISelPattern.cpp

index f130b161fafb4fb4286438b95a72aac18895ca7f..3ea7b62c0212ad3613b2fa70ecb1110b9cc68522 100644 (file)
@@ -287,7 +287,7 @@ SelectionDAG::~SelectionDAG() {
 
 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 @@ SDOperand SelectionDAG::getSetCC(ISD::CondCode Cond, MVT::ValueType VT,
     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.
index f9563a091ba151d8e41ebba11f886d4648f70bb2..f244d3ad39ab98d21c65e9039dd2ca739d21d343 100644 (file)
@@ -240,7 +240,6 @@ X86TargetLowering::LowerCallTo(SDOperand Chain,
     std::vector<SDOperand> Stores;
 
     for (unsigned i = 0, e = Args.size(); i != e; ++i) {
-      unsigned ArgReg;
       SDOperand PtrOff = DAG.getConstant(ArgOffset, getPointerTy());
       PtrOff = DAG.getNode(ISD::ADD, MVT::i32, StackPtr, PtrOff);