summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-05-10 02:22:38 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-05-10 02:22:38 +0000
commit915594d8841c2e0ac2b9f09bcf20ec5ea2c8b3d4 (patch)
treef6cc96b3fd06efa41fba742393e33c21405ffbf8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentabb36674a845ee9a3bdfbd4ec679881fa46568bf (diff)
downloadbcm5719-llvm-915594d8841c2e0ac2b9f09bcf20ec5ea2c8b3d4.tar.gz
bcm5719-llvm-915594d8841c2e0ac2b9f09bcf20ec5ea2c8b3d4.zip
Silence some VC++ warnings
llvm-svn: 21838
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index f130b161faf..3ea7b62c021 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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.
OpenPOWER on IntegriCloud