mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Use the cast<> operator in favor of C style casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59c2614eae
commit
35504209a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user