summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-01 19:58:59 +0000
committerDan Gohman <gohman@apple.com>2008-10-01 19:58:59 +0000
commit1dd27578dde4eddb5435b19edc2e2d6869ef5111 (patch)
treef4b634954ce4357639c345facf3d8d609d69e87e /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent5c8c00af1f0fc20de4b56b46bd28b718ce123fe8 (diff)
downloadbcm5719-llvm-1dd27578dde4eddb5435b19edc2e2d6869ef5111.tar.gz
bcm5719-llvm-1dd27578dde4eddb5435b19edc2e2d6869ef5111.zip
Make some implicit conversions explicit, to avoid compiler warnings.
llvm-svn: 56927
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 3d0a2d6e50c..4e8c47c85e4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2927,7 +2927,7 @@ static SDValue getMemcpyLoadsAndStores(SelectionDAG &DAG,
// Expand memcpy to a series of load and store ops if the size operand falls
// below a certain threshold.
std::vector<MVT> MemOps;
- uint64_t Limit = -1;
+ uint64_t Limit = uint64_t(-1);
if (!AlwaysInline)
Limit = TLI.getMaxStoresPerMemcpy();
unsigned DstAlign = Align; // Destination alignment can change.
@@ -2985,7 +2985,7 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG,
// Expand memmove to a series of load and store ops if the size operand falls
// below a certain threshold.
std::vector<MVT> MemOps;
- uint64_t Limit = -1;
+ uint64_t Limit = uint64_t(-1);
if (!AlwaysInline)
Limit = TLI.getMaxStoresPerMemmove();
unsigned DstAlign = Align; // Destination alignment can change.
OpenPOWER on IntegriCloud