mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Using const cast to alleviate a warning.
A PR is being filed to address some code issues here. llvm-svn: 168185
This commit is contained in:
parent
bf37f13f74
commit
1b6e700a16
@ -498,7 +498,8 @@ PPCRegisterInfo::hasReservedSpillSlot(const MachineFunction &MF,
|
||||
} else if (CRSpillFrameIdx) {
|
||||
FrameIdx = CRSpillFrameIdx;
|
||||
} else {
|
||||
MachineFrameInfo *MFI = ((MachineFunction &)MF).getFrameInfo();
|
||||
MachineFrameInfo *MFI =
|
||||
(const_cast<MachineFunction &>(MF)).getFrameInfo();
|
||||
FrameIdx = MFI->CreateFixedObject((uint64_t)4, (int64_t)-4, true);
|
||||
CRSpillFrameIdx = FrameIdx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user