diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 2ecae9e211..533c8cf721 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<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 |