Fix warning with gcc-4.0 and signed/unsigned.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAGBuild.cpp
index 7243c33de12e935cdd21567135c732cf51b10d57..c0d2a4d39a322ca07a41c39041c4055237d54551 100644 (file)
@@ -4233,7 +4233,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
     EVT Ty = Arg.getValueType();
 
     if (CI->getZExtValue() < 2)
-      setValue(&I, DAG.getConstant(-1, Ty));
+      setValue(&I, DAG.getConstant(-1U, Ty));
     else
       setValue(&I, DAG.getConstant(0, Ty));
     return 0;