mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Silence warnings from VS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -261,7 +261,7 @@ addIntervalsForSpills(const LiveInterval &li, VirtRegMap &vrm, int slot) {
|
|||||||
|
|
||||||
// the spill weight is now infinity as it
|
// the spill weight is now infinity as it
|
||||||
// cannot be spilled again
|
// cannot be spilled again
|
||||||
nI.weight = HUGE_VAL;
|
nI.weight = float(HUGE_VAL);
|
||||||
LiveRange LR(start, end, nI.getNextValue());
|
LiveRange LR(start, end, nI.getNextValue());
|
||||||
DEBUG(std::cerr << " +" << LR);
|
DEBUG(std::cerr << " +" << LR);
|
||||||
nI.addRange(LR);
|
nI.addRange(LR);
|
||||||
@ -694,6 +694,7 @@ bool LiveIntervals::overlapsAliases(const LiveInterval *LHS,
|
|||||||
}
|
}
|
||||||
|
|
||||||
LiveInterval LiveIntervals::createInterval(unsigned reg) {
|
LiveInterval LiveIntervals::createInterval(unsigned reg) {
|
||||||
float Weight = MRegisterInfo::isPhysicalRegister(reg) ? HUGE_VAL :0.0F;
|
float Weight = MRegisterInfo::isPhysicalRegister(reg) ?
|
||||||
|
(float)HUGE_VAL :0.0F;
|
||||||
return LiveInterval(reg, Weight);
|
return LiveInterval(reg, Weight);
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,8 @@ void MachineFunction::clearSSARegMap() {
|
|||||||
/// CreateStackObject - Create a stack object for a value of the specified type.
|
/// CreateStackObject - Create a stack object for a value of the specified type.
|
||||||
///
|
///
|
||||||
int MachineFrameInfo::CreateStackObject(const Type *Ty, const TargetData &TD) {
|
int MachineFrameInfo::CreateStackObject(const Type *Ty, const TargetData &TD) {
|
||||||
return CreateStackObject(TD.getTypeSize(Ty), TD.getTypeAlignment(Ty));
|
return CreateStackObject((unsigned)TD.getTypeSize(Ty),
|
||||||
|
TD.getTypeAlignment(Ty));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user