Skip to content

Commit

Permalink
Using const cast to alleviate a warning.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Joe Abbey committed Nov 16, 2012
1 parent df0ea8d commit 48f63be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Target/PowerPC/PPCRegisterInfo.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48f63be

Please sign in to comment.