mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Using const cast to alleviate a warning.
A PR is being filed to address some code issues here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df0ea8dcad
commit
48f63be368
@ -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