From b0d04726db108a8e8c43939d6321924a37199e24 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Mar 2002 17:58:12 +0000 Subject: [PATCH] Convert to use new style casts instead of direct checking git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1990 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9InstrSelection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 2ecae9e2117..533c8cf7211 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -2105,7 +2105,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, // the PC-relative address fits in the CALL address field (22 bits). // Use JMPL for indirect calls. // - if (callee->getValueType() == Value::MethodVal) + if (isa(callee)) { // direct function call M = new MachineInstr(CALL); M->SetMachineOperandVal(0, MachineOperand::MO_PCRelativeDisp, @@ -2133,7 +2133,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, mvec.back()->addImplicitRef(callInstr, /*isDef*/ true); // For the CALL instruction, the ret. addr. reg. is also implicit - if (callee->getValueType() == Value::MethodVal) + if (isa(callee)) mvec.back()->addImplicitRef(retAddrReg, /*isDef*/ true); // delay slot