diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-01 19:58:59 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-01 19:58:59 +0000 |
commit | aeaf245db33fa8bccdd14bb8899ee0585a75a7b1 (patch) | |
tree | 70ec1634716f9e2aaf9cd9d43011ba86a64cd639 /lib/CodeGen | |
parent | e7aa7baa76e1e65323ffe25593bb9cb3b4fa343c (diff) | |
download | external_llvm-aeaf245db33fa8bccdd14bb8899ee0585a75a7b1.zip external_llvm-aeaf245db33fa8bccdd14bb8899ee0585a75a7b1.tar.gz external_llvm-aeaf245db33fa8bccdd14bb8899ee0585a75a7b1.tar.bz2 |
Make some implicit conversions explicit, to avoid compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3d0a2d6..4e8c47c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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. |