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
This commit is contained in:
Chris Lattner 2002-03-26 17:58:12 +00:00
parent e590ff260e
commit b0d04726db

View File

@ -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<Function>(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<Function>(callee))
mvec.back()->addImplicitRef(retAddrReg, /*isDef*/ true);
// delay slot