summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-27 03:14:39 +0000
committerChris Lattner <sabre@nondot.org>2002-04-27 03:14:39 +0000
commite6dd75604ef8362baf9f14cfea691a39c5ec0110 (patch)
tree805f602bdcccacd704a0d058a8d6e62351a92bca /llvm/lib/Target/Sparc
parent4feb6f4a31118ddbf033f16f0ae3995cb76e7fd8 (diff)
downloadbcm5719-llvm-e6dd75604ef8362baf9f14cfea691a39c5ec0110.tar.gz
bcm5719-llvm-e6dd75604ef8362baf9f14cfea691a39c5ec0110.zip
Use the cast<> operator in favor of C style casts
llvm-svn: 2331
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index 9906e5b1091..cff0a845c2f 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -1461,7 +1461,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
M->SetMachineOperandVal(0, MachineOperand::MO_CCRegister,
(Value*) NULL);
M->SetMachineOperandVal(1, MachineOperand::MO_PCRelativeDisp,
- ((BranchInst*) subtreeRoot->getInstruction())->getSuccessor(dest));
+ cast<BranchInst>(subtreeRoot->getInstruction())->getSuccessor(dest));
mvec.push_back(M);
// delay slot
@@ -1477,7 +1477,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
M->SetMachineOperandVal(0, MachineOperand::MO_VirtualRegister,
subtreeRoot->leftChild()->getValue());
M->SetMachineOperandVal(1, MachineOperand::MO_PCRelativeDisp,
- ((BranchInst*) subtreeRoot->getInstruction())->getSuccessor(0));
+ cast<BranchInst>(subtreeRoot->getInstruction())->getSuccessor(0));
mvec.push_back(M);
// delay slot
@@ -1488,7 +1488,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
M->SetMachineOperandVal(0, MachineOperand::MO_CCRegister,
(Value*) NULL);
M->SetMachineOperandVal(1, MachineOperand::MO_PCRelativeDisp,
- ((BranchInst*) subtreeRoot->getInstruction())->getSuccessor(1));
+ cast<BranchInst>(subtreeRoot->getInstruction())->getSuccessor(1));
mvec.push_back(M);
// delay slot
OpenPOWER on IntegriCloud