commit | cdfa666c309ddb3dc655f805fb3d47205c4182d0 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Sat Oct 31 09:24:35 2009 +0000 |
committer | Eric Christopher <echristo@apple.com> | Sat Oct 31 09:24:35 2009 +0000 |
tree | 641e04e6d5e1f2d9551b16c579a1da993652e7b0 | |
parent | 9eda68988e7772c40f6125750a965ddb85acc25f [diff] [blame] |
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 7243c33..c0d2a4d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -4233,7 +4233,7 @@ 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;