summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430BranchSelector.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
commit04577efaf2263cc50095500348b2b9b791a43bed (patch)
treec7c50099bda1fb462b7295e82872f16d5ee8f44f /lib/Target/MSP430/MSP430BranchSelector.cpp
parent3012e2213bd29bd9202bf17d4053eae25311ecd7 (diff)
downloadllvm-04577efaf2263cc50095500348b2b9b791a43bed.tar.gz
llvm-04577efaf2263cc50095500348b2b9b791a43bed.tar.bz2
llvm-04577efaf2263cc50095500348b2b9b791a43bed.tar.xz
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/MSP430/MSP430BranchSelector.cpp')
-rw-r--r--lib/Target/MSP430/MSP430BranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430BranchSelector.cpp b/lib/Target/MSP430/MSP430BranchSelector.cpp
index 350b675118..529fd931f6 100644
--- a/lib/Target/MSP430/MSP430BranchSelector.cpp
+++ b/lib/Target/MSP430/MSP430BranchSelector.cpp
@@ -52,7 +52,8 @@ FunctionPass *llvm::createMSP430BranchSelectionPass() {
}
bool MSP430BSel::runOnMachineFunction(MachineFunction &Fn) {
- const MSP430InstrInfo *TII = (MSP430InstrInfo*)Fn.getTarget().getInstrInfo();
+ const MSP430InstrInfo *TII =
+ static_cast<const MSP430InstrInfo*>(Fn.getTarget().getInstrInfo());
// Give the blocks of the function a dense, in-order, numbering.
Fn.RenumberBlocks();
BlockSizes.resize(Fn.getNumBlockIDs());