From: Eric Christopher Date: Sat, 31 Oct 2009 09:24:35 +0000 (+0000) Subject: Fix warning with gcc-4.0 and signed/unsigned. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cdfa666c309ddb3dc655f805fb3d47205c4182d0;p=oota-llvm.git Fix warning with gcc-4.0 and signed/unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85648 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 7243c33de12..c0d2a4d39a3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -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;