Fix warning with gcc-4.0 and signed/unsigned.

llvm-svn: 85648
This commit is contained in:
Eric Christopher 2009-10-31 09:24:35 +00:00
parent 9178904e56
commit dec076697a

View 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;