diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-23 13:28:47 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-23 13:28:47 +0000 |
commit | 04577efaf2263cc50095500348b2b9b791a43bed (patch) | |
tree | c7c50099bda1fb462b7295e82872f16d5ee8f44f /lib/Target/PowerPC/PPCBranchSelector.cpp | |
parent | 3012e2213bd29bd9202bf17d4053eae25311ecd7 (diff) |
fix constness warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCBranchSelector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCBranchSelector.cpp b/lib/Target/PowerPC/PPCBranchSelector.cpp index ab251e6b33..8c427a1c78 100644 --- a/lib/Target/PowerPC/PPCBranchSelector.cpp +++ b/lib/Target/PowerPC/PPCBranchSelector.cpp @@ -53,7 +53,8 @@ FunctionPass *llvm::createPPCBranchSelectionPass() { } bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) { - const PPCInstrInfo *TII = (PPCInstrInfo*)Fn.getTarget().getInstrInfo(); + const PPCInstrInfo *TII = + static_cast<const PPCInstrInfo*>(Fn.getTarget().getInstrInfo()); // Give the blocks of the function a dense, in-order, numbering. Fn.RenumberBlocks(); BlockSizes.resize(Fn.getNumBlockIDs()); |