summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-02 03:41:24 +0000
committerChris Lattner <sabre@nondot.org>2001-10-02 03:41:24 +0000
commitda5581066696da706444b83a5729ea08b9190cd1 (patch)
tree2079bd1429d6b16c94df71bc918fe1f624aa3f2f /llvm/lib/Target/Sparc/SparcInstrSelection.cpp
parent38569343868ee3dad90dcdddfb9fee1ca0bcf25f (diff)
downloadbcm5719-llvm-da5581066696da706444b83a5729ea08b9190cd1.tar.gz
bcm5719-llvm-da5581066696da706444b83a5729ea08b9190cd1.zip
Commit more code over to new cast style
llvm-svn: 697
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcInstrSelection.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelection.cpp3
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);
OpenPOWER on IntegriCloud