aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-09 16:16:34 +0000
committerChris Lattner <sabre@nondot.org>2007-07-09 16:16:34 +0000
commite094f54f4cb6cb899252b66d328aa167013c982d (patch)
treeaf089e2ac3e70c7538978fb6425fdc983c516740 /lib/CodeGen
parent9a6ae965d69b131d692de8fc69545b6c7aaea0b2 (diff)
downloadexternal_llvm-e094f54f4cb6cb899252b66d328aa167013c982d.zip
external_llvm-e094f54f4cb6cb899252b66d328aa167013c982d.tar.gz
external_llvm-e094f54f4cb6cb899252b66d328aa167013c982d.tar.bz2
Fix this warning:
DAGCombiner.cpp: In member function 'llvm::SDOperand<unnamed>::DAGCombiner::visitOR(llvm::SDNode*)': DAGCombiner.cpp:1608: warning: passing negative value '-0x00000000000000001' for argument 1 to 'llvm::SDOperand llvm::SelectionDAG::getConstant(uint64_t, llvm::MVT::ValueType, bool)' oiy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 5dd966d..04e338b 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1605,7 +1605,7 @@ SDOperand DAGCombiner::visitOR(SDNode *N) {
// fold (or x, undef) -> -1
if (N1.getOpcode() == ISD::UNDEF)
- return DAG.getConstant(-1, VT);
+ return DAG.getConstant(~0ULL, VT);
// fold (or c1, c2) -> c1|c2
if (N0C && N1C)
return DAG.getNode(ISD::OR, VT, N0, N1);