diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-02 03:41:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-02 03:41:24 +0000 |
commit | b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace (patch) | |
tree | 44b5f879c16e7ecb2e9334ad120e3454270e1bb3 /lib/Target/SparcV9/SparcV9InstrSelection.cpp | |
parent | 1d87bcf4909b06dcd86320722653341f08b8b396 (diff) | |
download | external_llvm-b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace.zip external_llvm-b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace.tar.gz external_llvm-b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace.tar.bz2 |
Commit more code over to new cast style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelection.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index b1b5e01..e4ae8a8 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -2010,9 +2010,8 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, // Also, mark the operands of the Call as implicit operands // of the machine instruction. { - CallInst* callInstr = (CallInst*) subtreeRoot->getInstruction(); + CallInst *callInstr = cast<CallInst>(subtreeRoot->getInstruction()); Method* callee = callInstr->getCalledMethod(); - assert(callInstr->getOpcode() == Instruction::Call); Instruction* jmpAddrReg = new TmpInstruction(Instruction::UserOp1, callee, NULL); |