[llvm-commits] [llvm] r85648 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Eric Christopher
echristo at apple.com
Sat Oct 31 02:24:37 PDT 2009
Author: echristo
Date: Sat Oct 31 04:24:35 2009
New Revision: 85648
URL: http://llvm.org/viewvc/llvm-project?rev=85648&view=rev
Log:
Fix warning with gcc-4.0 and signed/unsigned.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=85648&r1=85647&r2=85648&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Sat Oct 31 04:24:35 2009
@@ -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;
More information about the llvm-commits
mailing list