diff options
author | Joe Abbey <jabbey@arxan.com> | 2012-11-16 19:38:42 +0000 |
---|---|---|
committer | Joe Abbey <jabbey@arxan.com> | 2012-11-16 19:38:42 +0000 |
commit | 48f63be3684213e16fb657e9bb8c37ae02788e90 (patch) | |
tree | fa38a3e210d5e22c55000a150c98b1d5fe930da9 | |
parent | df0ea8dcad612185a23b12e9ddf894b9ce744561 (diff) |
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
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 459c3589d3..1f00b3b2b0 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -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; } |