mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
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
This commit is contained in:
@ -2927,7 +2927,7 @@ static SDValue getMemcpyLoadsAndStores(SelectionDAG &DAG,
|
|||||||
// Expand memcpy to a series of load and store ops if the size operand falls
|
// Expand memcpy to a series of load and store ops if the size operand falls
|
||||||
// below a certain threshold.
|
// below a certain threshold.
|
||||||
std::vector<MVT> MemOps;
|
std::vector<MVT> MemOps;
|
||||||
uint64_t Limit = -1;
|
uint64_t Limit = uint64_t(-1);
|
||||||
if (!AlwaysInline)
|
if (!AlwaysInline)
|
||||||
Limit = TLI.getMaxStoresPerMemcpy();
|
Limit = TLI.getMaxStoresPerMemcpy();
|
||||||
unsigned DstAlign = Align; // Destination alignment can change.
|
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
|
// Expand memmove to a series of load and store ops if the size operand falls
|
||||||
// below a certain threshold.
|
// below a certain threshold.
|
||||||
std::vector<MVT> MemOps;
|
std::vector<MVT> MemOps;
|
||||||
uint64_t Limit = -1;
|
uint64_t Limit = uint64_t(-1);
|
||||||
if (!AlwaysInline)
|
if (!AlwaysInline)
|
||||||
Limit = TLI.getMaxStoresPerMemmove();
|
Limit = TLI.getMaxStoresPerMemmove();
|
||||||
unsigned DstAlign = Align; // Destination alignment can change.
|
unsigned DstAlign = Align; // Destination alignment can change.
|
||||||
|
@ -385,7 +385,7 @@ int SlotTracker::getGlobalSlot(const GlobalValue *V) {
|
|||||||
|
|
||||||
// Find the type plane in the module map
|
// Find the type plane in the module map
|
||||||
ValueMap::iterator MI = mMap.find(V);
|
ValueMap::iterator MI = mMap.find(V);
|
||||||
return MI == mMap.end() ? -1 : MI->second;
|
return MI == mMap.end() ? -1 : (int)MI->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -397,7 +397,7 @@ int SlotTracker::getLocalSlot(const Value *V) {
|
|||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
ValueMap::iterator FI = fMap.find(V);
|
ValueMap::iterator FI = fMap.find(V);
|
||||||
return FI == fMap.end() ? -1 : FI->second;
|
return FI == fMap.end() ? -1 : (int)FI->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user