diff options
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcInstrSelection.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index b1b5e01aff5..e4ae8a8400a 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.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); |