Fix for 64-bit builds.
authorMike Stump <mrs@apple.com>
Mon, 9 Nov 2009 22:28:21 +0000 (22:28 +0000)
committerMike Stump <mrs@apple.com>
Mon, 9 Nov 2009 22:28:21 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86600 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

index 53822042a2174f73b0132e4c4bbcc4fbe769e5b7..ee8bf791715e96ff1172f97cd225d5222538762e 100644 (file)
@@ -4287,7 +4287,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
     EVT Ty = Arg.getValueType();
 
     if (CI->getZExtValue() < 2)
-      setValue(&I, DAG.getConstant(-1U, Ty));
+      setValue(&I, DAG.getConstant(-1ULL, Ty));
     else
       setValue(&I, DAG.getConstant(0, Ty));
     return 0;