summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-23 13:28:47 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-23 13:28:47 +0000
commit4ad727179868398c1bda02c1bc686e72d7bba6e8 (patch)
tree48d270ad8271f9ea8352c5057f0f72ad678f3d50 /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
parent17a8ebcccf63695f0e684b0e366adc503f6c2d45 (diff)
downloadbcm5719-llvm-4ad727179868398c1bda02c1bc686e72d7bba6e8.tar.gz
bcm5719-llvm-4ad727179868398c1bda02c1bc686e72d7bba6e8.zip
fix constness warnings
llvm-svn: 109224
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index ab251e6b330..8c427a1c78b 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud