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 | 4ad727179868398c1bda02c1bc686e72d7bba6e8 (patch) | |
tree | 48d270ad8271f9ea8352c5057f0f72ad678f3d50 /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | |
parent | 17a8ebcccf63695f0e684b0e366adc503f6c2d45 (diff) | |
download | bcm5719-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.cpp | 3 |
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()); |