Fix warning with gcc-4.0 and signed/unsigned.
authorEric Christopher <echristo@apple.com>
Sat, 31 Oct 2009 09:24:35 +0000 (09:24 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 31 Oct 2009 09:24:35 +0000 (09:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85648 91177308-0d34-0410-b5e6-96231b3b80d8

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;