diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:25:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:25:14 +0000 |
commit | 1a18b7cf805fc6bfc6dc44fb66799ad577d57213 (patch) | |
tree | eb503190f507523963547bd70936a950dd3fd17c /lib/Target/SparcV9/SparcV9InstrSelection.cpp | |
parent | 87e873bd3dda5e6319157c5f132af9e34385bc58 (diff) | |
download | external_llvm-1a18b7cf805fc6bfc6dc44fb66799ad577d57213.zip external_llvm-1a18b7cf805fc6bfc6dc44fb66799ad577d57213.tar.gz external_llvm-1a18b7cf805fc6bfc6dc44fb66799ad577d57213.tar.bz2 |
Change Constant::getNullConstant to Constant::getNullValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelection.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 5e6aafd..9906e5b 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -1205,11 +1205,10 @@ CreateCopyInstructionsByType(const TargetMachine& target, // Use (unsigned long) 0 for a NULL pointer value. // const Type* zeroValueType = - (resultType->getPrimitiveID() == Type::PointerTyID)? Type::ULongTy - : resultType; + isa<PointerType>(resultType) ? Type::ULongTy : resultType; MachineInstr* minstr = new MachineInstr(opCode); minstr->SetMachineOperandVal(0, MachineOperand::MO_VirtualRegister, - Constant::getNullConstant(zeroValueType)); + Constant::getNullValue(zeroValueType)); minstr->SetMachineOperandVal(1, MachineOperand::MO_VirtualRegister, src); minstr->SetMachineOperandVal(2, MachineOperand::MO_VirtualRegister,dest); minstrVec.push_back(minstr); |