aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-26 17:58:12 +0000
committerChris Lattner <sabre@nondot.org>2002-03-26 17:58:12 +0000
commitb0d04726db108a8e8c43939d6321924a37199e24 (patch)
tree37a5321860eca660916f5273dc353e9e40aef187 /lib
parente590ff260edbe2e521506a9621c2b936b629a2ea (diff)
downloadexternal_llvm-b0d04726db108a8e8c43939d6321924a37199e24.zip
external_llvm-b0d04726db108a8e8c43939d6321924a37199e24.tar.gz
external_llvm-b0d04726db108a8e8c43939d6321924a37199e24.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 2ecae9e..533c8cf 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