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 | 1d096f031cc1bd9b565078b95084ce4117dde1fa (patch) | |
tree | c7c50099bda1fb462b7295e82872f16d5ee8f44f /lib/Target/MSP430 | |
parent | c9991dbb0e05002bc405c5c37bbe808ed93665ff (diff) | |
download | external_llvm-1d096f031cc1bd9b565078b95084ce4117dde1fa.zip external_llvm-1d096f031cc1bd9b565078b95084ce4117dde1fa.tar.gz external_llvm-1d096f031cc1bd9b565078b95084ce4117dde1fa.tar.bz2 |
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')
-rw-r--r-- | lib/Target/MSP430/MSP430BranchSelector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430BranchSelector.cpp b/lib/Target/MSP430/MSP430BranchSelector.cpp index 350b675..529fd93 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()); |